Skip to content

Commit

Permalink
fix: expand FetchErrorDetails type
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Oct 11, 2024
1 parent 7be1b75 commit 6da8d05
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion services/data/src/engine/types/FetchError.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
export type FetchErrorTypeName = 'network' | 'unknown' | 'access' | 'aborted'
export type FetchErrorDetails = { message?: string }
export type FetchErrorDetails = {
errorCode?: number
httpStatus?: string
httpStatusCode?: number
message?: string
status?: string
[x: string]: any
}

export interface FetchErrorPayload {
type: FetchErrorTypeName
Expand Down

0 comments on commit 6da8d05

Please sign in to comment.