You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ClassDecorator, PropertyDecorator, MethodDecorator, ParameterDecorator supported in typescript. All of them aimed class structure.
However, the following notation will be very useful. More javascript like code but powered with decorators.(Currently raises decorators are not valid here exception)
There is a long discussion in the original decorator proposal about function declarations: #2249; one thing to note, what TypeScript has is an implementation to an existing ECMAScript proposal, and we will not want to deviate from the proposal much specially in such an early stage.
And as @HerringtonDarkholme mentioned, using a function should achive what you want with a clearer semantics:
ClassDecorator, PropertyDecorator, MethodDecorator, ParameterDecorator supported in typescript. All of them aimed class structure.
However, the following notation will be very useful. More javascript like code but powered with decorators.(Currently raises decorators are not valid here exception)
The text was updated successfully, but these errors were encountered: