Skip to content

Commit 3f1eeef

Browse files
fix(react): use exportFromIndex Hey API option
1 parent ddcaf5e commit 3f1eeef

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/integrations/shield-react/openapi-ts.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export default defineConfig({
1212
name: '@hey-api/client-fetch',
1313
baseUrl: '',
1414
},
15-
'@tanstack/react-query',
15+
{
16+
name: '@tanstack/react-query',
17+
exportFromIndex: true,
18+
},
1619
],
1720
});

packages/integrations/shield-react/src/client/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
export type * from './types.gen.js';
44
export * from './sdk.gen.js';
5+
export * from './@tanstack/react-query.gen.js';

packages/integrations/shield-react/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { ActionForms } from './client/types.gen.js';
22

33
export * from './client/index.js';
4-
export * from './client/@tanstack/react-query.gen.js';
54

65
export type ReactStyleProps = {
76
action: ActionForms;

0 commit comments

Comments
 (0)