From b7b75d8e8188c68d86e74af116f8f434eb723df1 Mon Sep 17 00:00:00 2001 From: Maurice de Bruyn <32489486+ueberBrot@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:51:19 +0000 Subject: [PATCH] docs: fix type for error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f859f379ab..70f71e2644 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ If the original error is required, you can get it from the `cause` property of t try { const users = await this.client.userSearch.findUsers({ query: email }); // ... -} catch (error: uknown) { +} catch (error: unknown) { if (error instanceof HttpException) { console.log(error.message); console.log(error.cause); // original error (AxiosError | Error)