◐ Shell
clean mode source ↗

doc: recommend `erasableSyntaxOnly` in ts docs · nodejs/node@d2f49e7

Original file line numberDiff line numberDiff line change

@@ -76,15 +76,15 @@ generation, and by replacing inline types with whitespace, Node.js can run

7676

TypeScript code without the need for source maps.

7777
7878

Type stripping is compatible with most versions of TypeScript

79-

but we recommend version 5.7 or newer with the following `tsconfig.json` settings:

79+

but we recommend version 5.8 or newer with the following `tsconfig.json` settings:

8080
8181

```json

8282

{

8383

"compilerOptions": {

8484

"target": "esnext",

8585

"module": "nodenext",

86-

"allowImportingTsExtensions": true,

8786

"rewriteRelativeImportExtensions": true,

87+

"erasableSyntaxOnly": true,

8888

"verbatimModuleSyntax": true

8989

}

9090

}