Skip to content

Commit 9e709ce

Browse files
committed
fix: align error typings with react, from unknown to error/null
See ```ts if (error) return 'An error has occurred: ' + error.message ``` in react/simple example
1 parent b36c62d commit 9e709ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lit-query/src/QueryController.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type { QueryObserverOptions }
2121
*/
2222
export class QueryController<
2323
TQueryFnData = unknown,
24-
TError = unknown,
24+
TError = Error | null,
2525
TData = TQueryFnData,
2626
TQueryData = TQueryFnData,
2727
TQueryKey extends QueryKey = QueryKey,

0 commit comments

Comments
 (0)