Skip to content

Commit 8854fcb

Browse files
authored
Update TypeScript configuration options q
Added additional configuration options for TypeScript in tsconfig.json.
1 parent da6cb26 commit 8854fcb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pages/typescript/index.template.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,15 @@ <h2>--experimental-strip-types</h2>
441441
// https://www.typescriptlang.org/tsconfig/#erasableSyntaxOnly
442442
// LONG STORY SHORT (as of 21 Jan 2026) still use --experimental‑transform‑types and it is (semi) safe to use since LTS v22.18.0
443443

444+
// add to tsconfig.json
445+
// for --experimental-strip-types // https://nodejs.org/api/typescript.html#type-stripping
446+
"noEmit": true, // Optional - see note below
447+
"target": "ESNext",
448+
"module": "NodeNext",
449+
"rewriteRelativeImportExtensions": true,
450+
"erasableSyntaxOnly": true,
451+
"verbatimModuleSyntax": true
452+
444453
// WARNING: GOOD EXAMPLE HOW TO WORK WITH --experimental-transform-types: https://github.com/stopsopa/kafka/tree/experimental-transform-types
445454

446455

0 commit comments

Comments
 (0)