@types/tcp-ping
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -8,6 +8,6 @@ // Type definitions for tcp-ping 0.1 | ||
export interface Options { | ||
address?: string; | ||
port?: number; | ||
attempts?: number; | ||
timeout?: number; | ||
address?: string | undefined; | ||
port?: number | undefined; | ||
attempts?: number | undefined; | ||
timeout?: number | undefined; | ||
} | ||
@@ -18,3 +18,3 @@ | ||
time: number | undefined; | ||
err?: Error; | ||
err?: Error | undefined; | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "@types/tcp-ping", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "TypeScript definitions for tcp-ping", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-ping", | ||
"license": "MIT", | ||
@@ -27,4 +28,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "9a4a87a1bd68e9fa5308d6195c490f447de567e8ec7a99d1d974397ab50b3c98", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "42789857b6cb602ee8fcd07e9b2f46cbf00ea96ca9ca2a738f45cd93a1fa5de2", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,40 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-ping. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-ping/index.d.ts) | ||
````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: Mon, 24 May 2021 19:31:42 GMT | ||
* Last updated: Fri, 02 Jul 2021 21:32:13 GMT | ||
* Dependencies: none | ||
@@ -14,0 +49,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4595
1
52