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

0.1.6 • 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.

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, 05 Jul 2024 20:08:00 GMT
  • Dependencies: none

Credits

These definitions were written by JUNG YONG WOO.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/tcp-ping

Weekly Downloads

3,752

Version

0.1.6

License

MIT

Unpacked Size

3.81 kB

Total Files

5

Last publish

Collaborators

  • types