swc/crates/swc_ecma_codegen/tests/fixture/issues/4344/input.ts

14 lines
233 B
TypeScript
Raw Normal View History

function logParameter(target: Object, propertyName: string) {
console.log(target, propertyName);
}
function logClass(target: Function) {
console.log(target)
}
@logClass
export class Employee {
@logParameter
name: string;
}