Merge pull request #85 from kyle-mccarthy/types

Pass offset (uint) to onWritable callback
This commit is contained in:
Alex Hultman 2019-03-05 08:48:39 +01:00 committed by GitHub
commit d36b08a289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
docs/index.d.ts vendored
View File

@ -61,7 +61,7 @@ interface HttpResponse {
* You MUST return true for success, false for failure.
* Writing nothing is always success, so by default you must return true.
*/
onWritable(handler: (res: HttpResponse) => boolean) : HttpResponse;
onWritable(handler: (offset: number) => boolean) : HttpResponse;
/** Every HttpResponse MUST have an attached abort handler IF you do not respond
* to it immediately inside of the callback. Returning from an Http request handler