DefinitelyTyped/types/global-tunnel-ng/index.d.ts
2017-07-24 11:22:36 -07:00

24 lines
732 B
TypeScript

// Type definitions for global-tunnel-ng 2.1
// Project: https://github.com/salesforce/global-tunnel
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function initialize(options?: Options | string): void;
export function end(): void;
export const proxyUrl: string | null;
export const proxyConfig: Options | null;
export const isProxying: boolean;
export interface Options {
host: string;
port: number;
connect?: 'neither' | 'https' | 'both';
protocol?: 'http:' | 'https:';
proxyAuth?: string;
sockets?: number;
proxyHttpsOptions?: { [key: string]: any };
originHttpsOptions?: { [key: string]: any };
}