mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
8 lines
514 B
Plaintext
8 lines
514 B
Plaintext
iterableArrayPattern26.ts(2,21): error TS2345: Argument of type 'Map<string, number>' is not assignable to parameter of type '[string, number]'.
|
|
|
|
|
|
==== iterableArrayPattern26.ts (1 errors) ====
|
|
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { }
|
|
takeFirstTwoEntries(new Map([["", 0], ["hello", 1]]));
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2345: Argument of type 'Map<string, number>' is not assignable to parameter of type '[string, number]'. |