Class method does not emit 'design:returntype' and 'design:type'
raymondsze opened this issue · comments
const decorator = (): PropertyDecorator => {
return (target: object, propertyKey: string | symbol) => {
console.log(Reflect.getMetadataKeys(target, propertyKey));
};
};
class Testing2 {
@decorator()
test(): string {
return 'hello';
}
}
using tsc, it would print [ 'design:returntype', 'design:paramtypes', 'design:type' ]
using babel with this plugin, it would print [ 'design:paramtypes' ]
This is going to be published today with #24