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
When trying to iterate
Set
orMap
s with thefor...of
syntax I get an error that--downlevelIteration
should be enabled. This means I have to cast theSet
to anArray
first and then do the iteration. This flag was introduced in typescript v2.3. @alcuadrado suggested the following: