File tree Expand file tree Collapse file tree
plugins/typescript/src/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const getContext = (
1212 type QueryKey,
1313 type UseQueryOptions,
1414 } from "@tanstack/react-query";
15- import ${ useTypeImports ? "{ type QueryOperation }" : "{ QueryOperation }" } from './${ componentsFile } ';
15+ import ${ useTypeImports ? "type { QueryOperation }" : "{ QueryOperation }" } from './${ componentsFile } ';
1616
1717 export type ${ pascal ( prefix ) } Context<
1818 TQueryFnData = unknown,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const getFetcher = ({
1818} ) =>
1919 `${
2020 contextPath
21- ? `import ${ useTypeImports ? `{ type ${ pascal ( prefix ) } Context }` : `{ ${ pascal ( prefix ) } Context }` } from "./${ contextPath } ";`
21+ ? `import ${ useTypeImports ? `type { ${ pascal ( prefix ) } Context }` : `{ ${ pascal ( prefix ) } Context }` } from "./${ contextPath } ";`
2222 : `export type ${ pascal ( prefix ) } FetcherExtraProps = {
2323 /**
2424 * You can add some extra props to your generated fetchers.
You can’t perform that action at this time.
0 commit comments