Skip to content

Commit d618190

Browse files
committed
doc: ts docs should recommend erasableSyntaxOnly
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
1 parent 6b0af17 commit d618190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/typescript.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ 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
{
@@ -85,6 +85,7 @@ but we recommend version 5.7 or newer with the following `tsconfig.json` setting
8585
"module": "nodenext",
8686
"allowImportingTsExtensions": true,
8787
"rewriteRelativeImportExtensions": true,
88+
"erasableSyntaxOnly": true,
8889
"verbatimModuleSyntax": true
8990
}
9091
}

0 commit comments

Comments
 (0)