system_assignation/node_modules/defer-to-connect/dist/index.d.ts

11 lines
346 B
TypeScript
Raw Normal View History

2022-03-24 09:22:39 -04:00
/// <reference types="node" />
import { Socket } from 'net';
import { TLSSocket } from 'tls';
interface Listeners {
connect?: () => void;
secureConnect?: () => void;
close?: (hadError: boolean) => void;
}
declare const deferToConnect: (socket: Socket | TLSSocket, fn: Listeners | (() => void)) => void;
export default deferToConnect;