1.0.4 • Published 6 months ago

@types/tcp-port-used v1.0.4

Weekly downloads
8,365
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/tcp-port-used

Summary

This package contains type definitions for tcp-port-used (https://github.com/stdarg/tcp-port-used).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used.

index.d.ts

// Type definitions for tcp-port-used 1.0
// Project: https://github.com/stdarg/tcp-port-used
// Definitions by: Gaute Johansen <https://github.com/gautejohan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface TcpPortUsedOptions {
    port: number;
    host?: string;
    status?: boolean;
    retryTimeMs?: number;
    timeOutMs?: number;
}

export function check(port: number | TcpPortUsedOptions, host?: string): Promise<boolean>;

export function waitForStatus(port: number | TcpPortUsedOptions, host?: string, inUse?: boolean, retryTimeMs?: number, timeOutMs?: number): Promise<void>;

export function waitUntilFree(port: number | TcpPortUsedOptions, retryTimeMs?: number, timeOutMs?: number): Promise<void>;

export function waitUntilFreeOnHost(port: number | TcpPortUsedOptions, host?: string, retryTimeMs?: number, timeOutMs?: number): Promise<void>;

export function waitUntilUsed(port: number | TcpPortUsedOptions, retryTimeMs?: number, timeOutMs?: number): Promise<void>;

export function waitUntilUsedOnHost(port: number | TcpPortUsedOptions, host?: string, retryTimeMs?: number, timeOutMs?: number): Promise<void>;

Additional Details

  • Last updated: Wed, 16 Mar 2022 00:31:47 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Gaute Johansen.