Remove res argument in callback (#204)
This commit is contained in:
parent
708afd7d27
commit
6c4bca61ef
2
docs/index.d.ts
vendored
2
docs/index.d.ts
vendored
@ -67,7 +67,7 @@ interface HttpResponse {
|
||||
* to it immediately inside of the callback. Returning from an Http request handler
|
||||
* without attaching (by calling onAborted) an abort handler is ill-use and will termiante.
|
||||
* When this event emits, the response has been aborted and may not be used. */
|
||||
onAborted(handler: (res: HttpResponse) => void) : HttpResponse;
|
||||
onAborted(handler: () => void) : HttpResponse;
|
||||
|
||||
/** Handler for reading data from POST and such requests. You MUST copy the data of chunk if isLast is not true. We Neuter ArrayBuffers on return, making it zero length.*/
|
||||
onData(handler: (chunk: ArrayBuffer, isLast: boolean) => void) : HttpResponse;
|
||||
|
Loading…
Reference in New Issue
Block a user