From 90c625e4f2f6ac060fe3fcfcf02d0581dad37fc4 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Thu, 13 Apr 2023 09:38:22 +0200 Subject: [PATCH] fix: there is no sync connector (#2059) --- types/connector.d.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/types/connector.d.ts b/types/connector.d.ts index 55a9daab260..ec787e1790b 100644 --- a/types/connector.d.ts +++ b/types/connector.d.ts @@ -28,13 +28,7 @@ declare namespace buildConnector { export type Callback = (...args: CallbackArgs) => void type CallbackArgs = [null, Socket | TLSSocket] | [Error, null] - export type connector = connectorAsync | connectorSync - - interface connectorSync { - (options: buildConnector.Options): Socket | TLSSocket - } - - interface connectorAsync { + export interface connector { (options: buildConnector.Options, callback: buildConnector.Callback): void } }