immutable-js-oss / immutable-js

Immutable persistent data collections for Javascript which increase efficiency and simplicity.
https://immutable-js-oss.github.io/immutable-js/
MIT License
37 stars 6 forks source link

Why is the wrong Immutable.js Map factory function selected when running npm test? #147

Open Methuselah96 opened 3 years ago

Methuselah96 commented 3 years ago

From @donders on Tue, 20 Aug 2019 10:08:37 GMT

As described in this SA post in more detail: https://stackoverflow.com/questions/57557106/why-is-the-wrong-immutable-js-map-factory-function-selected-when-running-npm-tes?noredirect=1#comment101576259_57557106

Trying to use the 'collection' notation of the factory functions for Map causes a transpiler error. It seems Typescript is unable to determine the intent of the two dimensional collection. Is the documentation still up to date?

Copied from original issue: https://github.com/immutable-js/immutable-js/issues/1729