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

Installation

npm install --save @types/localtunnel

Summary

This package contains type definitions for localtunnel (https://github.com/localtunnel/localtunnel).

Details

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

index.d.ts

// Type definitions for localtunnel 2.0
// Project: https://github.com/localtunnel/localtunnel
// Definitions by: Vladyslav Khrapov <https://github.com/vladhrapov>
//                 Noam Alffasy <https://github.com/noamalffasy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import { EventEmitter } from "events";

export = localtunnel;

declare function localtunnel(
    port: number | localtunnel.TunnelConfig & { port: number }
): Promise<localtunnel.Tunnel>;

declare function localtunnel(
    opts: localtunnel.TunnelConfig & { port: number },
    callback: localtunnel.TunnelCallback,
): localtunnel.Tunnel;

declare function localtunnel(
    port: number,
    opts: localtunnel.TunnelConfig
): Promise<localtunnel.Tunnel>;

declare function localtunnel(
    port: number,
    opts: localtunnel.TunnelConfig,
    callback: localtunnel.TunnelCallback,
): localtunnel.Tunnel;

declare namespace localtunnel {
    type TunnelCallback = (
        err?: string,
        tunnel?: Tunnel
    ) => void;

    interface TunnelConfig {
        subdomain?: string | undefined;
        host?: string | undefined;
        local_host?: string | undefined;
        local_https?: boolean | undefined;
        local_cert?: string | undefined;
        local_key?: string | undefined;
        local_ca?: string | undefined;
        allow_invalid_cert?: boolean | undefined;
    }

    interface Tunnel extends EventEmitter {
        url: string;
        tunnelCluster: TunnelCluster;
        open(cb: ((err: string) => void) | (() => void)): void;
        close(): void;
    }

    interface TunnelCluster extends EventEmitter {
        open(): void;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:23:48 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Vladyslav Khrapov, and Noam Alffasy.

Current Tags

  • 2.0.1                                ...           latest (5 years ago)
  • 1.9.0                                ...           ts2.0 (7 years ago)
  • 1.9.0                                ...           ts2.1 (7 years ago)
  • 1.9.0                                ...           ts2.2 (7 years ago)
  • 1.9.0                                ...           ts2.3 (7 years ago)
  • 1.9.0                                ...           ts2.4 (7 years ago)
  • 1.9.0                                ...           ts2.5 (7 years ago)
  • 1.9.0                                ...           ts2.6 (7 years ago)
  • 1.9.0                                ...           ts2.7 (7 years ago)
  • 2.0.0                                ...           ts2.8 (6 years ago)
  • 2.0.0                                ...           ts2.9 (6 years ago)
  • 2.0.0                                ...           ts3.0 (6 years ago)
  • 2.0.0                                ...           ts3.1 (6 years ago)
  • 2.0.0                                ...           ts3.2 (6 years ago)
  • 2.0.0                                ...           ts3.3 (6 years ago)
  • 2.0.0                                ...           ts3.4 (6 years ago)
  • 2.0.0                                ...           ts3.5 (6 years ago)
  • 2.0.1                                ...           ts3.6 (5 years ago)
  • 2.0.1                                ...           ts3.7 (5 years ago)
  • 2.0.1                                ...           ts3.8 (5 years ago)
  • 2.0.1                                ...           ts3.9 (5 years ago)
  • 2.0.1                                ...           ts4.0 (5 years ago)
  • 2.0.1                                ...           ts4.1 (5 years ago)
  • 2.0.1                                ...           ts4.2 (5 years ago)
  • 2.0.1                                ...           ts4.3 (5 years ago)
  • 2.0.1                                ...           ts4.4 (5 years ago)
  • 2.0.1                                ...           ts4.5 (5 years ago)
  • 2.0.1                                ...           ts4.6 (5 years ago)
  • 2.0.1                                ...           ts4.7 (5 years ago)
  • 2.0.1                                ...           ts4.8 (5 years ago)
  • 2.0.1                                ...           ts4.9 (5 years ago)
  • 2.0.1                                ...           ts5.0 (5 years ago)
  • 2.0.1                                ...           ts5.1 (5 years ago)

3 Versions

  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           6 years ago
  • 1.9.0                                ...           7 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |