@@ -512,7 +512,7 @@ export const joinKeys = (keys: string[]): string => keys.join('|')
512
512
export interface _DefineDataColadaLoaderOptions_Common <
513
513
Name extends keyof RouteMap ,
514
514
Data ,
515
- > extends Omit < UseQueryOptions < Data > , 'query' | 'key' > {
515
+ > extends Omit < UseQueryOptions < Data , ErrorDefault , Data > , 'query' | 'key' > {
516
516
/**
517
517
* Key associated with the data and passed to pinia colada
518
518
* @param to - Route to load the data
@@ -620,8 +620,8 @@ export interface UseDataLoaderColada_LaxData<Data>
620
620
/**
621
621
* Data Loader composable returned by `defineColadaLoader()`.
622
622
*/
623
- export interface UseDataLoaderColada_DefinedData < Data >
624
- extends UseDataLoader < Data , ErrorDefault > {
623
+ export interface UseDataLoaderColada_DefinedData < TData >
624
+ extends UseDataLoader < TData , ErrorDefault > {
625
625
/**
626
626
* Data Loader composable returned by `defineColadaLoader()`.
627
627
*
@@ -646,9 +646,13 @@ export interface UseDataLoaderColada_DefinedData<Data>
646
646
// we can await the raw data
647
647
// excluding NavigationResult allows to ignore it in the type of Data when doing
648
648
// `return new NavigationResult()` in the loader
649
- Exclude < Data , NavigationResult | undefined > ,
649
+ Exclude < TData , NavigationResult | undefined > ,
650
650
// or use it as a composable
651
- UseDataLoaderColadaResult < Exclude < Data , NavigationResult > >
651
+ UseDataLoaderColadaResult <
652
+ Exclude < TData , NavigationResult > ,
653
+ ErrorDefault ,
654
+ Exclude < TData , NavigationResult >
655
+ >
652
656
>
653
657
}
654
658
0 commit comments