Nova-Client/Solar/Launcher/node_modules/defer-to-connect/dist/index.d.ts
2023-03-19 19:32:58 +00:00

11 lines
346 B
TypeScript

/// <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;