13 lines
605 B
Plaintext
13 lines
605 B
Plaintext
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts(4,6): error TS2345: Argument of type 'C' is not assignable to parameter of type 'Function'.
|
|
Property 'apply' is missing in type 'C'.
|
|
|
|
|
|
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts (1 errors) ====
|
|
declare function dec(target: Function, paramIndex: number): void;
|
|
|
|
class C {
|
|
@dec method() {}
|
|
~~~
|
|
!!! error TS2345: Argument of type 'C' is not assignable to parameter of type 'Function'.
|
|
!!! error TS2345: Property 'apply' is missing in type 'C'.
|
|
} |