Skip to content

Commit 74474f4

Browse files
committed
tsconfig: add isolatedModules=true
1 parent b2c89c1 commit 74474f4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

scripts/codegen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ telescope({
106106
107107
// Exports we want to provide at the root of the "cosmjs-types" package
108108
109-
export { DeepPartial, Exact } from "./helpers";
109+
export type { DeepPartial, Exact } from "./helpers";
110110
`;
111111
writeFileSync(`${outPath}/index.ts`, index_ts);
112112

src/index.ts

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

33
// Exports we want to provide at the root of the "cosmjs-types" package
44

5-
export { DeepPartial, Exact } from "./helpers";
5+
export type { DeepPartial, Exact } from "./helpers";

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"declaration": true,
55
"esModuleInterop": true,
66
"forceConsistentCasingInFileNames": true,
7+
"isolatedModules": true,
78
"lib": ["es2020"],
89
"module": "node20",
910
"newLine": "LF",

0 commit comments

Comments
 (0)