mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-11 19:32:43 +00:00
* Add missing type for input parameter Allow `URL` objects as parameter (see https://github.com/Rob--W/proxy-from-env/blob/master/index.js#L24 ) * Update types and tests * Add missing reference type
9 lines
247 B
TypeScript
9 lines
247 B
TypeScript
import { getProxyForUrl } from "proxy-from-env";
|
|
import { parse } from "url";
|
|
|
|
// $ExpectType string
|
|
getProxyForUrl("http://microsoft.github.io/TypeSearch/");
|
|
|
|
// $ExpectType string
|
|
getProxyForUrl(parse("http://microsoft.github.io/TypeSearch/"));
|