@types/tcp-ping
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Installation

npm install --save @types/tcp-ping

Summary

This package contains type definitions for tcp-ping (https://github.com/wesolyromek/tcp-ping).

Details

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

index.d.ts

export interface Options {
    address?: string | undefined;
    port?: number | undefined;
    attempts?: number | undefined;
    timeout?: number | undefined;
}

export interface Results {
    seq: number;
    time: number | undefined;
    err?: Error | undefined;
}

export interface Result {
    address: string;
    port: number;
    attempts: number;
    avg: number;
    max: number;
    min: number;
    results: Results[];
}

export function ping(options: Options, callback: (error: Error, result: Result) => void): void;
export function probe(address: string, port: number, callback: (error: Error, result: boolean) => void): void;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by JUNG YONG WOO, and rymate1234.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/tcp-ping

Weekly Downloads

2,836

Version

0.1.5

License

MIT

Unpacked Size

4.01 kB

Total Files

5

Last publish

Collaborators

  • types