Skip to content

Commit 0de7383

Browse files
[FE-2894] fix type definition for accessing cause of FaunaHttpErrorResponseContent (#653)
* FE-2894 Fix FaunaHttpErrorResponseContent type definition Co-authored-by: Paul Paterson <[email protected]>
1 parent 377b174 commit 0de7383

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/types/errors.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import RequestResult from './RequestResult'
22

33
export type FaunaHttpErrorResponseContent = {
44
errors: {
5+
position: (string | number)[]
56
code: string,
67
description: string
8+
cause?: FaunaHttpErrorResponseContent[];
79
}[]
810
}
911
export module errors {

0 commit comments

Comments
 (0)