24 lines
877 B
Plaintext
24 lines
877 B
Plaintext
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod13.ts ===
|
|
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
|
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
|
>T : T
|
|
>target : any
|
|
>propertyKey : string
|
|
>descriptor : TypedPropertyDescriptor<T>
|
|
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
|
>T : T
|
|
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
|
|
>T : T
|
|
|
|
class C {
|
|
>C : C
|
|
|
|
@dec ["1"]() { }
|
|
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
|
>"1" : string
|
|
|
|
@dec ["b"]() { }
|
|
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
|
>"b" : string
|
|
}
|