From 287848b528a608f8f88e7b925bff69b04a2347e2 Mon Sep 17 00:00:00 2001 From: Muhammad Ilham Mubarak Date: Tue, 24 Dec 2024 19:02:12 +0700 Subject: [PATCH] fix(solid-query): solid query options default error type (#8472) --- 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<