npm.io
3.0.0 • Published 1 year ago

@types/global-agent

Licence
MIT
Version
3.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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

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

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

Additional Details

  • Last updated: Fri, 21 Feb 2025 1749 GMT
  • Dependencies: none

Credits

These definitions were written by Jamie Magee.