We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ac1aa commit 49fb575Copy full SHA for 49fb575
packages/typechain/src/codegen/createBarrelFiles.ts
@@ -53,6 +53,12 @@ export function createBarrelFiles(
53
.map((p) => {
54
const namespaceIdentifier = camelCase(p)
55
56
+ if (typeOnly && moduleSuffix)
57
+ return [
58
+ `import type * as ${namespaceIdentifier} from './${p}/index${moduleSuffix}';`,
59
+ `export type { ${namespaceIdentifier} };`,
60
+ ].join('\n')
61
+
62
if (typeOnly)
63
return [
64
`import type * as ${namespaceIdentifier} from './${p}';`,
0 commit comments