Skip to content

Commit

Permalink
fix: there is no sync connector (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Apr 14, 2023
1 parent ae31f07 commit 90c625e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions types/connector.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 90c625e

Please sign in to comment.