aboutsummaryrefslogtreecommitdiff
path: root/node_modules/defer-to-connect/dist/source/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/defer-to-connect/dist/source/index.d.ts')
-rw-r--r--node_modules/defer-to-connect/dist/source/index.d.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/defer-to-connect/dist/source/index.d.ts b/node_modules/defer-to-connect/dist/source/index.d.ts
new file mode 100644
index 0000000..8db8dbb
--- /dev/null
+++ b/node_modules/defer-to-connect/dist/source/index.d.ts
@@ -0,0 +1,10 @@
+/// <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;