Skip to content
0

katanakit-js / DefaultError

Type Alias: DefaultError ​

ts
type DefaultError = Register extends {
  defaultError: infer TError;
} ? TError : Error;

Defined in: node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:1790

The error type used wherever an error is not given an explicit type parameter. Defaults to Error; declare defaultError on Register to change it everywhere at once.

Released under the MIT License.