microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.81k stars 12.46k forks source link

Documentation in lib.decorators is incorrect #60251

Open trusktr opened 1 week ago

trusktr commented 1 week ago

Acknowledgement

Comment

Described order of execution of initializers added with context.addInitializer() is incorrect.

Reference:

https://github.com/tc39/proposal-decorators?tab=readme-ov-file#adding-initialization-logic-with-addinitializer

Pull Request:

trusktr commented 1 week ago

Note, the PR template states to link to an issue that is in the Backlog (I can't do that).