From ff0ad6077aecdb7627ec985a61c159159be6b8ea Mon Sep 17 00:00:00 2001 From: Kai Vandivier <49666798+KaiVandivier@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:45:19 +0200 Subject: [PATCH] fix: expand FetchErrorDetails type (#1389) --- services/data/src/engine/types/FetchError.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/data/src/engine/types/FetchError.ts b/services/data/src/engine/types/FetchError.ts index c824979e0..71b195c49 100644 --- a/services/data/src/engine/types/FetchError.ts +++ b/services/data/src/engine/types/FetchError.ts @@ -1,5 +1,12 @@ export type FetchErrorTypeName = 'network' | 'unknown' | 'access' | 'aborted' -export type FetchErrorDetails = { message?: string } +export type FetchErrorDetails = { + httpStatus?: string + httpStatusCode?: number + status?: string + message?: string + errorCode?: string + [x: string]: any +} export interface FetchErrorPayload { type: FetchErrorTypeName