diff --git a/docs/src/api/class-response.md b/docs/src/api/class-response.md index 976763a957..7e6327db4a 100644 --- a/docs/src/api/class-response.md +++ b/docs/src/api/class-response.md @@ -15,7 +15,7 @@ Returns the buffer with response body. ## async method: Response.finished - 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 - returns: <[Frame]> diff --git a/types/types.d.ts b/types/types.d.ts index 7ab5756355..360e44f6d3 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -13255,7 +13255,7 @@ export interface Response { body(): Promise; /** - * Waits for this response to finish, returns failure error if request failed. + * Waits for this response to finish, returns always `null`. */ finished(): Promise;