diff --git a/doc/api/typescript.md b/doc/api/typescript.md index 57bbc838de0125..04de1e99776230 100644 --- a/doc/api/typescript.md +++ b/doc/api/typescript.md @@ -76,15 +76,15 @@ generation, and by replacing inline types with whitespace, Node.js can run TypeScript code without the need for source maps. Type stripping is compatible with most versions of TypeScript -but we recommend version 5.7 or newer with the following `tsconfig.json` settings: +but we recommend version 5.8 or newer with the following `tsconfig.json` settings: ```json { "compilerOptions": { "target": "esnext", "module": "nodenext", - "allowImportingTsExtensions": true, "rewriteRelativeImportExtensions": true, + "erasableSyntaxOnly": true, "verbatimModuleSyntax": true } }