Quantcast
Channel: Can't use new ecmascript decorators in typescript 2.4.2 - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by John Weisz for Can't use new ecmascript decorators in typescript 2.4.2

Unfortunately, property decorators do not have access to the property descriptor, as properties live on the class instance, while decorators are evaluated before any instance could possibly exist....

View Article



Can't use new ecmascript decorators in typescript 2.4.2

Here is my code example:function enumerable(value: boolean) { return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) { descriptor.enumerable = value; };}class A {...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images