0.1.5 • Published 6 months ago
@types/tcp-ping v0.1.5
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
// Type definitions for tcp-ping 0.1
// Project: https://github.com/wesolyromek/tcp-ping
// Definitions by: JUNG YONG WOO <https://github.com/stegano>
// rymate1234 <https://github.com/rymate1234>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Fri, 02 Jul 2021 21:32:13 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by JUNG YONG WOO, and rymate1234.