From 5093b8f98425af8c829478e8df5aeee1d007c283 Mon Sep 17 00:00:00 2001 From: Dan Nguyen <39300846+nguyeda1@users.noreply.github.com> Date: Wed, 2 Mar 2022 16:41:00 +0100 Subject: [PATCH] chore: updated incorect RunCollectionClient list status type (#237) * chore: updated incorect RunCollectionClient list status type * chore: typescript error fix Co-authored-by: Vlad Frangu --- README.md | 2 +- src/interceptors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5102077a..8ff3e605 100644 --- a/README.md +++ b/README.md @@ -1570,7 +1570,7 @@ https://docs.apify.com/api/v2#/reference/actors/run-collection/get-list-of-runs | [options.limit] | number | | [options.offset] | number | | [options.desc] | boolean | -| [options.status] | boolean | +| [options.status] | string | * * * diff --git a/src/interceptors.ts b/src/interceptors.ts index 16d85c88..37c9168e 100644 --- a/src/interceptors.ts +++ b/src/interceptors.ts @@ -20,7 +20,7 @@ export class InvalidResponseBodyError extends Error { response: AxiosResponse; - override cause: Error; + declare cause: Error; constructor(response: AxiosResponse, cause: Error) { super(`Response body could not be parsed.\nCause:${cause.message}`);