Skip to content

Commit fd5c9e3

Browse files
committed
Fix add Error to query error type
1 parent 780d9fc commit fd5c9e3

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

src/lib/seam/use-seam-infinite-query.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ interface QueryData<T extends SeamHttpEndpointPaginatedQueryPaths> {
8080
}
8181

8282
type QueryError<T extends SeamHttpEndpointPaginatedQueryPaths> =
83+
| Error
8384
| SeamHttpApiError
8485
| SeamHttpInvalidInputError
8586
| (QueryData<T>['data'] extends ActionAttempt

src/lib/seam/use-seam-mutation-without-workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ export function useSeamMutationWithoutWorkspace<
5151
type MutationData<T extends SeamHttpEndpointWithoutWorkspaceMutationPaths> =
5252
Awaited<ReturnType<SeamHttpEndpointsWithoutWorkspace[T]>>
5353

54-
type MutationError = SeamHttpApiError | SeamHttpInvalidInputError
54+
type MutationError = Error | SeamHttpApiError | SeamHttpInvalidInputError
5555

5656
type MutationOptions<X, Y, Z> = Omit<UseMutationOptions<X, Y, Z>, 'mutationFn'>

src/lib/seam/use-seam-mutation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type MutationData<T extends SeamHttpEndpointMutationPaths> = Awaited<
5252
>
5353

5454
type MutationError<T extends SeamHttpEndpointMutationPaths> =
55+
| Error
5556
| SeamHttpApiError
5657
| SeamHttpInvalidInputError
5758
| (MutationData<T> extends ActionAttempt

src/lib/seam/use-seam-query-without-workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ type QueryData<T extends SeamHttpEndpointWithoutWorkspaceQueryPaths> = Awaited<
5151
ReturnType<SeamHttpEndpointsWithoutWorkspace[T]>
5252
>
5353

54-
type QueryError = SeamHttpApiError | SeamHttpInvalidInputError
54+
type QueryError = Error | SeamHttpApiError | SeamHttpInvalidInputError
5555

5656
type QueryOptions<X, Y> = Omit<UseQueryOptions<X, Y>, 'queryKey' | 'queryFn'>

src/lib/seam/use-seam-query.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ type QueryData<T extends SeamHttpEndpointQueryPaths> = Awaited<
5151
>
5252

5353
type QueryError<T extends SeamHttpEndpointQueryPaths> =
54+
| Error
5455
| SeamHttpApiError
5556
| SeamHttpInvalidInputError
5657
| (QueryData<T> extends ActionAttempt

0 commit comments

Comments
 (0)