Skip to content

Commit 0263f06

Browse files
committed
fix: not working explicits exports for types on declaration files
1 parent 64f46ac commit 0263f06

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const transformer = (_: ts.Program) => (context: ts.TransformationContext) => (
159159
visitNamedExports as any,
160160
ts.isNamedExports
161161
);
162-
return node.exportClause === exportClause || exportClause
162+
return node.exportClause === exportClause || exportClause || isDeclarationFile
163163
? ts.updateExportDeclaration(
164164
node,
165165
node.decorators,

tests/__fixtures/core/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { sum } from "@utils";
2+
export { NoRuntimecodeHere } from "@utils/types-only";
23
import { subs, NoRuntimecodeHere } from "@utils";
34
import "@circular/b";
45
import { A } from "@circular/a";

0 commit comments

Comments
 (0)