diff --git a/packages/plugins/typescript/react-query/src/fetcher-custom-mapper.ts b/packages/plugins/typescript/react-query/src/fetcher-custom-mapper.ts index 4399f5f173f..20bc48e907a 100644 --- a/packages/plugins/typescript/react-query/src/fetcher-custom-mapper.ts +++ b/packages/plugins/typescript/react-query/src/fetcher-custom-mapper.ts @@ -32,7 +32,7 @@ export class CustomMapperFetcher implements FetcherRenderer { asDefault: this._mapper.default, }, ], - this.visitor.config.useTypeImports + false ); } diff --git a/packages/plugins/typescript/react-query/tests/react-query.spec.ts b/packages/plugins/typescript/react-query/tests/react-query.spec.ts index e2c97acd2fa..8ac1c8b1604 100644 --- a/packages/plugins/typescript/react-query/tests/react-query.spec.ts +++ b/packages/plugins/typescript/react-query/tests/react-query.spec.ts @@ -391,7 +391,7 @@ export const useTestMutation = < const out = (await plugin(schema, docs, config)) as Types.ComplexPluginOutput; - expect(out.prepend).toContain(`import type { customFetcher } from './my-file';`); + expect(out.prepend).toContain(`import { customFetcher } from './my-file';`); }); it("Should generate fetcher field when exposeFetcher is true and the fetcher isn't a react hook", async () => {