Files

11 lines
184 B
TypeScript
Raw Permalink Normal View History

2026-08-27 21:09:14 +00:00
function decorator(target: any, propertyKey: any) {
target[propertyKey + "decorated"] = true;
}
export default class DecoratedClass {
@decorator
method() {
return 42;
}
}