diff --git a/doc/api/typescript.md b/doc/api/typescript.md index 5ea7dea0202..674fa9efff2 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 `#`.