From 5052314d7939255b372a372a985aeee91eb596d7 Mon Sep 17 00:00:00 2001 From: Ravi Arnan Date: Sat, 24 Oct 2026 14:33:07 +0800 Subject: [PATCH] doc: fix grammar and phrasing in typescript.md Fix grammatical issues and heading phrasing in `doc/api/typescript.md`: - Correct subject-verb agreement ("files that contains" -> "files that contain"). - Add missing indefinite article ("result in an ... error"). - Change heading from "Paths aliases" to "Path aliases" to match standard TypeScript terminology. - Clarify verb parallelism ("won't be transformed and will therefore produce an error"). Signed-off-by: Ravi Arnan --- doc/api/typescript.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/typescript.md b/doc/api/typescript.md index 5ea7dea02022..674fa9efff2d 100644 --- a/doc/api/typescript.md +++ b/doc/api/typescript.md @@ -76,7 +76,7 @@ changes: description: Type stripping is now stable. --> -By default Node.js will execute TypeScript files that contains only +By default Node.js will execute TypeScript files that contain only erasable TypeScript syntax. Node.js will replace TypeScript syntax with whitespace, and no type checking is performed. @@ -164,7 +164,7 @@ namespace TypeOnly { } ``` -This will result in [`ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX`][] error: +This will result in an [`ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX`][] error: ```ts // This namespace is exporting a value @@ -231,9 +231,9 @@ is highly discouraged. Stripping types inside `node_modules` is intended only for local development. -### Paths aliases +### Path aliases -[`tsconfig` "paths"][] won't be transformed and therefore produce an error. The closest +[`tsconfig` "paths"][] won't be transformed and will therefore produce an error. The closest feature available is [subpath imports][] with the limitation that they need to start with `#`.