Skip to content

Commit f811836

Browse files
robpalmeRafaelGSS
authored andcommitted
doc: recommend erasableSyntaxOnly in ts docs
TypeScript 5.8 is now released which adds a new tsconfig flag that aligns with Node's default behavior. https://www.typescriptlang.org/tsconfig/#erasableSyntaxOnly Two weeks ago this options was added to the recommended TSConfig for Node which resides in the tsconfig/bases project. https://github.com/tsconfig/bases/blob/main/bases/node-ts.json PR-URL: #57271 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
1 parent 6da8eb6 commit f811836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/typescript.md

Lines changed: 2 additions & 2 deletions
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
}

0 commit comments

Comments
 (0)