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

Decorators for ES6 classes

Results 30 proposal-decorators issues
Sort by recently updated
recently updated
newest added

ReactJS usage example: --- React functional components: ```jsx import {memo, forwardRef} from 'react' @memo @forwardRef export default function Button() { return my button } ``` React HOC: ```jsx import {withRouter}...

follow-on proposal

Spinning this off from a discussion on Matrix TC39 General (cc @jmdyck, @ljharb, @tabatkins): The proposal’s specification has the following productions: * Decorator : `@` DecoratorMemberExpression * Decorator : `@`...

The current syntax ``` DecoratorMemberExpression[Yield, Await] : IdentifierReference[?Yield, ?Await] DecoratorMemberExpression[?Yield, ?Await] . IdentifierName DecoratorMemberExpression[?Yield, ?Await] . PrivateIdentifier ( Expression[+In, ?Yield, ?Await] ) ``` disallows `this.dec` as a decorator member expression,...

Should they be allowed? ```js @new.target.dec @import.meta.url.dec ``` Ref: https://github.com/tc39/proposal-decorators/issues/460#issuecomment-1083432294

Previous discussion: https://github.com/tc39/proposal-decorators-previous/issues/32 OK to leave as a follow-on proposal?

follow-on proposal

This is a question often brought up in other issues (most recently in https://github.com/tc39/proposal-decorators/issues/69#issuecomment-409734868) that might need to be better explored. The way I see it, there are a number...

follow-on proposal

At the January 2018 TC39 meeting, during the decorators presentation, [the committee discussed](https://github.com/tc39/tc39-notes/blob/master/es8/2018-01/jan-25.md#13vc-decorators-towards-stage-3) a possible decorators standard library. Would it make sense to sketch out, at an explainer level, what...

follow-on proposal

Previous discussion: https://github.com/tc39/proposal-decorators-previous/issues/23 Is this OK to leave for v2?

follow-on proposal

Previous discussion: https://github.com/tc39/proposal-decorators-previous/issues/22 OK to leave for v2?

follow-on proposal

I'm currently working on [writing some tests](https://github.com/evanw/decorator-tests) for decorators in preparation for adding support for them to esbuild. My reading of the specification is that decorators on the class itself...