Skip to content

Commit

Permalink
[FE-2894] fix type definition for accessing cause of FaunaHttpErrorRe…
Browse files Browse the repository at this point in the history
…sponseContent (#653)

* FE-2894 Fix FaunaHttpErrorResponseContent type definition

Co-authored-by: Paul Paterson <[email protected]>
  • Loading branch information
josStorer and ptpaterson authored Dec 6, 2022
1 parent 377b174 commit 0de7383
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/errors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import RequestResult from './RequestResult'

export type FaunaHttpErrorResponseContent = {
errors: {
position: (string | number)[]
code: string,
description: string
cause?: FaunaHttpErrorResponseContent[];
}[]
}
export module errors {
Expand Down

0 comments on commit 0de7383

Please sign in to comment.