11 lines
721 B
Plaintext
11 lines
721 B
Plaintext
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'.
|
|
} |