mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
513 B
TypeScript
14 lines
513 B
TypeScript
// Type definitions for proxy-from-env 1.0
|
|
// Project: https://github.com/Rob--W/proxy-from-env#readme
|
|
// Definitions by: JasonHK <https://github.com/JasonHK>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* Takes an input URL and returns the desired proxy URL. If no proxy is set, an
|
|
* empty string is returned.
|
|
* @param url The URL
|
|
* @returns The URL of the proxy that should handle the request to the given
|
|
* URL.
|
|
*/
|
|
export function getProxyForUrl(url: string): string;
|