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 13, 2023
1 parent ded60f6 commit 8349d26
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 @@ -27,13 +27,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 8349d26

Please sign in to comment.