Skip to content

Commit e901ba8

Browse files
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
1 parent 97e55f8 commit e901ba8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/typescript.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,9 @@ 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 for decorators and will not support them until they are supported natively in JavaScript.
165164

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

0 commit comments

Comments
 (0)