Skip to content

Commit 5357ec6

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 <marcoippolito54@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
1 parent 632d388 commit 5357ec6

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
@@ -154,10 +154,10 @@ namespace A {
154154
}
155155
```
156156

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

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

0 commit comments

Comments
 (0)