Skip to content

Commit

Permalink
fix: onConnect types (#3116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag authored Apr 14, 2024
1 parent 7a94682 commit a2939bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/dispatcher.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ declare namespace Dispatcher {
export type StreamFactory = (data: StreamFactoryData) => Writable;
export interface DispatchHandlers {
/** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */
onConnect?(abort: () => void): void;
onConnect?(abort: (err?: Error) => void): void;
/** Invoked when an error has occurred. */
onError?(err: Error): void;
/** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
Expand Down

0 comments on commit a2939bc

Please sign in to comment.