DefinitelyTyped/types/net-keepalive/index.d.ts
Giorgi Kotchlamazashvili f2094c7891 Added type definitions for net-keepalive (#20403)
* Added type definitions for net-keepalive

* fixes linting issues

* Enables no-unnecessary-generics rule while linting
2017-10-09 15:31:41 -07:00

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