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 ArticleCan'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
More Pages to Explore .....