From a5fa19074802f966862e170efe112ea60e1f386d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 10 Sep 2021 17:02:34 +0200 Subject: [PATCH] docs: no Response.finished() return value (#8819) --- docs/src/api/class-response.md | 2 +- types/types.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;