Skip to content

Commit

Permalink
fix: expand FetchErrorDetails type (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier authored Oct 14, 2024
1 parent 7be1b75 commit ff0ad60
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 = {
httpStatus?: string
httpStatusCode?: number
status?: string
message?: string
errorCode?: string
[x: string]: any
}

export interface FetchErrorPayload {
type: FetchErrorTypeName
Expand Down

0 comments on commit ff0ad60

Please sign in to comment.