We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b561ab commit 0e69f6dCopy full SHA for 0e69f6d
doc/api/typescript.md
@@ -68,6 +68,21 @@ By intentionally not supporting syntaxes that require JavaScript code
68
generation, and by replacing inline types with whitespace, Node.js can run
69
TypeScript code without the need for source maps.
70
71
+Type stripping works with most versions of TypeScript
72
+but we recommend version 5.7 or newer with the following `tsconfig.json` settings:
73
+
74
+```json
75
+{
76
+ "compilerOptions": {
77
+ "target": "esnext",
78
+ "module": "nodenext",
79
+ "allowImportingTsExtensions": true,
80
+ "rewriteRelativeImportExtensions": true,
81
+ "verbatimModuleSyntax": true
82
+ }
83
+}
84
+```
85
86
### Determining module system
87
88
Node.js supports both [CommonJS][] and [ES Modules][] syntax in TypeScript
0 commit comments