You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ deno check test.ts
Check file:///home/rjb/Work/Deno/misc/test.ts
error: TS2339 [ERROR]: Property 'toArray' does not exist on type 'IterableIterator<number>'.
const a = new Array(10).keys().toArray()
~~~~~~~
at file:///home/rjb/Work/Deno/misc/test.ts:1:32
Yes, .toArray() on general Iterables is marked as experimental (as per MDN), however since it's implemented in Deno, the check error is spurious.
The text was updated successfully, but these errors were encountered:
Version: Deno 1.42.4
File test.ts contains:
Running it works as expected:
But:
Yes,
.toArray()
on general Iterables is marked as experimental (as per MDN), however since it's implemented in Deno, the check error is spurious.The text was updated successfully, but these errors were encountered: