mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added type definitions for net-keepalive * fixes linting issues * Enables no-unnecessary-generics rule while linting
10 lines
550 B
TypeScript
10 lines
550 B
TypeScript
// Type definitions for net-keepalive 0.4
|
|
// Project: https://github.com/hertzg/node-net-keepalive
|
|
// Definitions by: George Kotchlamazashvili <https://github.com/hertzg>
|
|
// Definitions: https://github.com/hertzg/node-net-keepalive
|
|
|
|
/// <reference types="node" />
|
|
|
|
export type NodeJSSocketWithFileDescriptor = NodeJS.Socket | { _handle: { _fd: number } }
|
|
export function setKeepAliveProbes(socket: NodeJSSocketWithFileDescriptor, cnt: number): number
|
|
export function setKeepAliveInterval(socket: NodeJSSocketWithFileDescriptor, intvl: number): number |