Closed
Description
Suggested Changes
I'm trying to reproduce this in the playground:
const foo = new Map<string, string>();
let bar: string;
for (const [key, value] of foo.entries()) {
bar = value; // "@typescript-eslint/no-unsafe-argument"
}
However, TS tells me that:
Type 'IterableIterator<[string, string]>' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators.(2569)
This is probably because the target is set to the default ES3
in the playground. There's no way for me to either set target
or enable downlevelIteration
...