11 lines
No EOL
721 B
Text
11 lines
No EOL
721 B
Text
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts(4,5): error TS2322: Type '(target: Function, propertyKey: string | symbol, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol) => void'.
|
|
|
|
|
|
==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts (1 errors) ====
|
|
declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void;
|
|
|
|
class C {
|
|
@dec prop;
|
|
~~~~
|
|
!!! error TS2322: Type '(target: Function, propertyKey: string | symbol, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol) => void'.
|
|
} |