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 } }