ethereumjs / ethereumjs-config

[DEPRECATED] Configuration is now added within a config folder of the EthereumJS monorepo
6 stars 8 forks source link

Typescript --downlevelIteration #30

Open s1na opened 4 years ago

s1na commented 4 years ago

When trying to iterate Set or Maps with the for...of syntax I get an error that --downlevelIteration should be enabled. This means I have to cast the Set to an Array first and then do the iteration. This flag was introduced in typescript v2.3. @alcuadrado suggested the following:

reading an article on that made me think that we should probably use importHelpers and install the same version of the helpers in each lib