2.1.3 • Published 6 months ago

@types/global-agent v2.1.3

Weekly downloads
32,929
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/global-agent

Summary

This package contains type definitions for global-agent (https://github.com/gajus/global-agent#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/global-agent.

index.d.ts

// Type definitions for global-agent 2.1
// Project: https://github.com/gajus/global-agent#readme
// Definitions by: Jamie Magee <https://github.com/JamieMagee>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface ProxyAgentConfigurationInputType {
    environmentVariableNamespace?: string | undefined;
    forceGlobalAgent?: boolean | undefined;
    socketConnectionTimeout?: number | undefined;
}

export interface ProxyAgentConfigurationType {
    readonly HTTP_PROXY: string | null;
    readonly HTTPS_PROXY: string | null;
    readonly NO_PROXY: string | null;
}

export function bootstrap(configurationInput?: ProxyAgentConfigurationInputType): boolean;
export function createGlobalProxyAgent(
    configurationInput: ProxyAgentConfigurationInputType,
): ProxyAgentConfigurationType;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:13 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Jamie Magee.