You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: types/dispatcher.d.ts
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ export default Dispatcher
15
15
/** Dispatcher is the core API used to dispatch requests. */
16
16
declareclassDispatcherextendsEventEmitter{
17
17
/** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */
/** 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. */
234
+
/** @deprecated */
218
235
onConnect?(abort: (err?: Error)=>void): void;
219
236
/** Invoked when an error has occurred. */
237
+
/** @deprecated */
220
238
onError?(err: Error): void;
221
239
/** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
0 commit comments