Remove res argument in callback (#204)

This commit is contained in:
Arnaud Benhamdine 2019-10-17 03:39:55 +02:00 committed by Alex Hultman
parent 708afd7d27
commit 6c4bca61ef

2
docs/index.d.ts vendored
View File

@ -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;