mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
721 B
Plaintext
13 lines
721 B
Plaintext
iterableArrayPattern28.ts(2,52): error TS2769: No overload matches this call.
|
|
The last overload gave the following error.
|
|
Type 'boolean' is not assignable to type 'number'.
|
|
|
|
|
|
==== iterableArrayPattern28.ts (1 errors) ====
|
|
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { }
|
|
takeFirstTwoEntries(...new Map([["", 0], ["hello", true]]));
|
|
~~~~
|
|
!!! error TS2769: No overload matches this call.
|
|
!!! error TS2769: The last overload gave the following error.
|
|
!!! error TS2769: Type 'boolean' is not assignable to type 'number'.
|
|
!!! related TS2771 lib.es2015.collection.d.ts:--:--: The last overload is declared here. |