Skip to content

Commit 42abf49

Browse files
committed
fix(ts-interface-generator): add explicit types to tsconfigs for TS6 compat
TypeScript 6 defaults the `types` field to `[]` instead of auto-discovering all @types packages. Explicitly listing the required type packages ensures compilation works on both TS 5.x and TS 6.x.
1 parent 34cf886 commit 42abf49

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/ts-interface-generator/tsconfig-tests.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"moduleResolution": "node16",
1111
"esModuleInterop": true,
1212
"skipLibCheck": true,
13-
"forceConsistentCasingInFileNames": true
13+
"forceConsistentCasingInFileNames": true,
14+
"resolveJsonModule": true,
15+
"types": ["node", "jest", "openui5"]
1416
},
1517
"include": ["./src/test/**/*"]
1618
}

‎packages/ts-interface-generator/tsconfig.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"esModuleInterop": true,
1212
"skipLibCheck": true,
1313
"forceConsistentCasingInFileNames": true,
14-
"resolveJsonModule": true
14+
"resolveJsonModule": true,
15+
"types": ["node", "jest"]
1516
},
1617
"include": ["./src/**/*"],
1718
"exclude": ["./src/test"]

0 commit comments

Comments
 (0)