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.
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: Wed, 18 Oct 2023 11:45:06 GMT
- Dependencies: none
Credits
These definitions were written by JUNG YONG WOO, and rymate1234.