typed-typings/env-node

url.format() does not accept string

Closed this issue · 0 comments

Added in Node 6:
https://nodejs.org/api/url.html#url_url_format_urlobject

Not in Node 5:
https://nodejs.org/docs/latest-v5.x/api/url.html#url_url_format_urlobj

url.format(urlObject)

Added in: v0.1.25
urlObject | A URL object (as returned by url.parse() or constructed otherwise). If a string, it is converted to an object by passing it to url.parse().