Javascript – How to apply a decorator to existing class
I have class A in external package class A { mess: string; } And my property decorator function test(target: any, propertyKey: string, descriptor: PropertyDescriptor) { target.propertyKey = 'test'; }; I want to apply my decorator test to class A, but…