borisyankov/DefinitelyTyped — pull request #2884 by stkb (2014-09-27 09:05:51+00:00)
Title: node.d.ts Support object type for Url.query

In the Url module of Node, if you call `url.parse()` with the parseQueryString option then the `.query` property of the generated object is an object rather than a string. Eg:

``` javascript
url.parse('http://example.com/?hello=world').query == 'hello=world'
url.parse('http://example.com/?hello=world', true).query == { hello: 'world' }
```

Therefore `Url.query` needs to be type `any` to allow both string and object