proposal-decorators-previous
proposal-decorators-previous copied to clipboard
Decorator examples not up-to-date with spec
The spec of the decorators proposal has been updated, and now the core-decorators package is out-of-date. This means the examples in the spec are not relevant anymore, as they are example usages based upon that package. I'd like to update the spec document to contain at least one example of each of the following:
- function decorator - function
- function decorator - usage
- class decorator - usage
and maybe
- class decorator - function
One example could be a @deprecated-decorator, as it's applicable for both classes and functions.
Contributions to the specification to add more examples would be really appreciated! Please make updates to the repository at https://github.com/tc39/proposal-decorators , and note that it has changed somewhat over the past year.