mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
8 lines
398 B
Plaintext
8 lines
398 B
Plaintext
iterableArrayPattern24.ts(2,1): error TS2488: Type '{ 0: string; 1: true; }' must have a '[Symbol.iterator]()' method that returns an iterator.
|
|
|
|
|
|
==== iterableArrayPattern24.ts (1 errors) ====
|
|
var a: string, b: boolean[];
|
|
[a, ...b] = { 0: "", 1: true };
|
|
~~~~~~~~~
|
|
!!! error TS2488: Type '{ 0: string; 1: true; }' must have a '[Symbol.iterator]()' method that returns an iterator. |