faststore icon indicating copy to clipboard operation
faststore copied to clipboard

Typescript ES6 support

Open victors1682 opened this issue 2 years ago • 1 comments

Describe the feature you'd like I attempted to iterate through a map using ES6 syntax but had to resort to the older approach. Not urgent but nice to have.

error TS2802: Type 'Map<any, any>' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.

     for (let [key, values] of variantMap) {

https://github.com/vtex/faststore/blob/271888ce74d9ca8ea683ec299f90c6aeff27f26f/packages/core/tsconfig.json#L23

victors1682 avatar Oct 25 '23 13:10 victors1682

Thank you for the feedback. The team will look into this 🚀

gvc avatar Oct 26 '23 01:10 gvc