mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
508 B
Plaintext
10 lines
508 B
Plaintext
functionAssignabilityWithArrayLike01.ts(2,7): error TS2322: Type '() => void' is not assignable to type 'ArrayLike<any>'.
|
|
Index signature for type 'number' is missing in type '() => void'.
|
|
|
|
|
|
==== functionAssignabilityWithArrayLike01.ts (1 errors) ====
|
|
function func() {}
|
|
const array: ArrayLike<any> = func;
|
|
~~~~~
|
|
!!! error TS2322: Type '() => void' is not assignable to type 'ArrayLike<any>'.
|
|
!!! error TS2322: Index signature for type 'number' is missing in type '() => void'. |