From e9df69c2ccaa4283d2a7bffaf3f3268b949aca0b Mon Sep 17 00:00:00 2001 From: Muhammad Ilham Mubarak Date: Tue, 24 Dec 2024 17:02:31 +0700 Subject: [PATCH] fix(solid-query): solid query options default error type --- packages/solid-query/src/queryOptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/solid-query/src/queryOptions.ts b/packages/solid-query/src/queryOptions.ts index 50c7d81151..8663883b75 100644 --- a/packages/solid-query/src/queryOptions.ts +++ b/packages/solid-query/src/queryOptions.ts @@ -25,7 +25,7 @@ export type DefinedInitialDataOptions< export function queryOptions< TQueryFnData = unknown, - TError = unknown, + TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TOptions extends ReturnType< @@ -45,7 +45,7 @@ export function queryOptions< export function queryOptions< TQueryFnData = unknown, - TError = unknown, + TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TOptions extends ReturnType<