proposal-decorators-previous icon indicating copy to clipboard operation
proposal-decorators-previous copied to clipboard

Decorator examples not up-to-date with spec

Open MMeent opened this issue 9 years ago • 1 comments

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.

MMeent avatar Feb 01 '17 07:02 MMeent

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.

littledan avatar Feb 10 '18 23:02 littledan