Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Decorator examples not up-to-date with spec #28

Open
MMeent opened this issue Feb 1, 2017 · 1 comment
Open

Decorator examples not up-to-date with spec #28

MMeent opened this issue Feb 1, 2017 · 1 comment

Comments

@MMeent
Copy link

MMeent commented Feb 1, 2017

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:

  1. function decorator - function
  2. function decorator - usage
  3. class decorator - usage

and maybe

  1. class decorator - function

One example could be a @deprecated-decorator, as it's applicable for both classes and functions.

@littledan
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants