Skip to content

Commit 8ccff0d

Browse files
salman-aziz-4425aduh95
authored andcommitted
doc: update decorator documentation to reflect actual policy
- Remove misleading 'soon' language - Remove 'temporary limitation' claim - Clarify that Node.js will not provide polyfills - Wait for native JavaScript engine support Refs: #60282 PR-URL: #60288 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]>
1 parent a507308 commit 8ccff0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/typescript.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ namespace A {
158158
}
159159
```
160160

161-
Since Decorators are currently a [TC39 Stage 3 proposal](https://github.com/tc39/proposal-decorators)
162-
and will soon be supported by the JavaScript engine,
161+
Since Decorators are currently a [TC39 Stage 3 proposal](https://github.com/tc39/proposal-decorators),
163162
they are not transformed and will result in a parser error.
164-
This is a temporary limitation and will be resolved in the future.
163+
Node.js does not provide polyfills and thus will not support decorators until
164+
they are supported natively in JavaScript.
165165

166166
In addition, Node.js does not read `tsconfig.json` files and does not support
167167
features that depend on settings within `tsconfig.json`, such as paths or

0 commit comments

Comments
 (0)