We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4799f80 commit 407fc2dCopy full SHA for 407fc2d
1 file changed
plugins/typescript/src/core/getUsedImports.ts
@@ -20,7 +20,7 @@ export const getUsedImports = (
20
responses: string;
21
utils: string;
22
},
23
- useTypeImports = false
+ useTypeImports = true
24
): { keys: string[]; nodes: ts.Node[] } => {
25
const imports: Record<
26
keyof typeof files,
@@ -93,7 +93,7 @@ export const getUsedImports = (
93
return createNamedImport(
94
Array.from(i.imports.values()),
95
`./${i.from}`,
96
- useTypeImports || true
+ useTypeImports ?? true
97
);
98
}
99
}),
0 commit comments