You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`import { useModelQuery, useInfiniteModelQuery, useModelMutation } from '${runtimeImportBase}/${target}';`,
713
-
`import type { PickEnumerable, CheckSelect, QueryError, ExtraQueryOptions, ExtraMutationOptions } from '${runtimeImportBase}';`,
713
+
`import { type PickEnumerable, type CheckSelect, type QueryError, type ExtraQueryOptions, type ExtraMutationOptions, DEFAULT_QUERY_ENDPOINT } from '${runtimeImportBase}';`,
714
714
`import type { PolicyCrudKind } from '${RUNTIME_PACKAGE}'`,
715
715
`import metadata from './__model_meta';`,
716
716
`type DefaultError = QueryError;`,
717
717
];
718
718
719
719
if(version==='v5'&&generatePrefetch){
720
720
shared.push(
721
-
`import { fetchModelQuery, prefetchModelQuery, fetchInfiniteModelQuery, prefetchInfiniteModelQuery } from '${runtimeImportBase}/${target}';`
722
-
);
723
-
shared.push(
724
-
`import type { QueryClient, FetchQueryOptions, FetchInfiniteQueryOptions } from '@tanstack/${target}-query';`
721
+
`import { fetchModelQuery, prefetchModelQuery, fetchInfiniteModelQuery, prefetchInfiniteModelQuery } from '${runtimeImportBase}/${target}';`,
722
+
`import type { QueryClient, FetchQueryOptions, FetchInfiniteQueryOptions } from '@tanstack/${target}-query';`,
723
+
`import type { ExtraPrefetchOptions } from '${runtimeImportBase}';`
725
724
);
726
725
}
727
726
@@ -746,7 +745,7 @@ function makeBaseImports(target: TargetFramework, version: TanStackVersion, gene
746
745
`import type { UseMutationOptions, UseQueryOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/vue-query';`,
747
746
`import { getHooksContext } from '${runtimeImportBase}/${target}';`,
748
747
`import type { MaybeRef, MaybeRefOrGetter, ComputedRef, UnwrapRef } from 'vue';`,
749
-
...(generatePrefetch ? [`import { type MaybeRefDeep } from '${runtimeImportBase}/${target}';`] : []),
0 commit comments