my-idlers/node_modules/defer-to-connect/dist/source/index.d.ts
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11: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: TLSSocket | Socket, fn: Listeners | (() => void)) => void;
export default deferToConnect;