20 lines
616 B
Text
20 lines
616 B
Text
|
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.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 public method() {}
|
||
|
>dec : unknown
|
||
|
>method : () => void
|
||
|
}
|