@types/tunnel
TypeScript definitions for tunnel
Last updated 9 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/tunnel 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/tunnel

Summary

This package contains type definitions for tunnel (https://github.com/koichik/node-tunnel/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tunnel.

index.d.ts

/// <reference types="node" />
import { Agent, AgentOptions as HttpAgentOptions } from "http";
import { Agent as HttpsAgent, AgentOptions as HttpsAgentOptions } from "https";

export function httpOverHttp(options?: HttpOptions): Agent;
export function httpsOverHttp(options?: HttpsOverHttpOptions): Agent;
export function httpOverHttps(options?: HttpOverHttpsOptions): HttpsAgent;
export function httpsOverHttps(options?: HttpsOverHttpsOptions): HttpsAgent;

export interface HttpOptions extends HttpAgentOptions {
    proxy?: ProxyOptions | undefined;
}

export interface HttpsOptions extends HttpsAgentOptions {
    proxy?: ProxyOptions | undefined;
}

export interface HttpsOverHttpOptions extends HttpsOptions {
    ca?: Buffer[] | undefined;
    key?: Buffer | undefined;
    cert?: Buffer | undefined;
}

export interface HttpOverHttpsOptions extends HttpOptions {
    proxy?: HttpsProxyOptions | undefined;
}

export interface HttpsOverHttpsOptions extends HttpsOverHttpOptions {
    proxy?: HttpsProxyOptions | undefined;
}

export interface ProxyOptions {
    host: string;
    port: number;
    localAddress?: string | undefined;
    proxyAuth?: string | undefined;
    headers?: { [key: string]: any } | undefined;
}

export interface HttpsProxyOptions extends ProxyOptions {
    ca?: Buffer[] | undefined;
    servername?: string | undefined;
    key?: Buffer | undefined;
    cert?: Buffer | undefined;
}

Additional Details

  • Last updated: Fri, 26 Jan 2024 01:52:35 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender.

Current Tags

  • 0.0.3                                ...           latest (5 years ago)
  • 0.0.1                                ...           ts2.0 (7 years ago)
  • 0.0.1                                ...           ts2.1 (7 years ago)
  • 0.0.1                                ...           ts2.2 (7 years ago)
  • 0.0.1                                ...           ts2.3 (7 years ago)
  • 0.0.1                                ...           ts2.4 (7 years ago)
  • 0.0.1                                ...           ts2.5 (7 years ago)
  • 0.0.1                                ...           ts2.6 (7 years ago)
  • 0.0.1                                ...           ts2.7 (7 years ago)
  • 0.0.1                                ...           ts2.8 (7 years ago)
  • 0.0.1                                ...           ts2.9 (7 years ago)
  • 0.0.1                                ...           ts3.0 (7 years ago)
  • 0.0.1                                ...           ts3.1 (7 years ago)
  • 0.0.1                                ...           ts3.2 (7 years ago)
  • 0.0.1                                ...           ts3.3 (7 years ago)
  • 0.0.1                                ...           ts3.4 (7 years ago)
  • 0.0.2                                ...           ts3.5 (5 years ago)
  • 0.0.3                                ...           ts3.6 (5 years ago)
  • 0.0.3                                ...           ts3.7 (5 years ago)
  • 0.0.3                                ...           ts3.8 (5 years ago)
  • 0.0.3                                ...           ts3.9 (5 years ago)
  • 0.0.3                                ...           ts4.0 (5 years ago)
  • 0.0.3                                ...           ts4.1 (5 years ago)
  • 0.0.3                                ...           ts4.2 (5 years ago)
  • 0.0.4                                ...           ts4.3 (3 years ago)
  • 0.0.4                                ...           ts4.4 (3 years ago)
  • 0.0.6                                ...           ts4.5 (2 years ago)
  • 0.0.3                                ...           ts4.6 (5 years ago)
  • 0.0.3                                ...           ts4.7 (5 years ago)
  • 0.0.3                                ...           ts4.8 (5 years ago)
  • 0.0.3                                ...           ts4.9 (5 years ago)
  • 0.0.3                                ...           ts5.0 (5 years ago)
  • 0.0.3                                ...           ts5.1 (5 years ago)
  • 0.0.3                                ...           ts5.2 (5 years ago)
  • 0.0.3                                ...           ts5.3 (5 years ago)

6 Versions

  • 0.0.6                                ...           2 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |