docs: no Response.finished() return value (#8819)

This commit is contained in:
Max Schmitt 2021-09-10 17:02:34 +02:00 committed by GitHub
parent ccff6e3036
commit a5fa190748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ Returns the buffer with response body.
## async method: Response.finished ## async method: Response.finished
- returns: <[null]|[string]> - returns: <[null]|[string]>
Waits for this response to finish, returns failure error if request failed. Waits for this response to finish, returns always `null`.
## method: Response.frame ## method: Response.frame
- returns: <[Frame]> - returns: <[Frame]>

2
types/types.d.ts vendored
View File

@ -13255,7 +13255,7 @@ export interface Response {
body(): Promise<Buffer>; body(): Promise<Buffer>;
/** /**
* Waits for this response to finish, returns failure error if request failed. * Waits for this response to finish, returns always `null`.
*/ */
finished(): Promise<null|Error>; finished(): Promise<null|Error>;