1tsfunction f() {
2 console.log("f(): evaluated");
3 return function(target, propertyKey: string, descriptor: PropertyDescriptor) {
4 console.log("f(): called");
5 };
6}
7
8function g() {
9 console.log("g(): evaluated");
10 return function(target, propertyKey: string, descriptor: PropertyDescriptor) {
11 console.log("g(): called");
12 };
13}
14
15class C {
16 @f()
17 @g()
18 method() {}
19}