typed-typings / npm-ramda

TypeScript's type definitions for Ramda
MIT License
384 stars 64 forks source link

fix: do not hang #403

Closed ikatyang closed 6 years ago

ikatyang commented 6 years ago

Fixes #402

The memory issue is caused by the Tuple type, probably too many comparison I guess. To avoid other memory issue in the future, I reduced the number of items in NumberStringMap as well.

I've tested it with @stephenkoo's project (https://github.com/types/npm-ramda/issues/311#issuecomment-406166019) and the empty project mentioned in #402, it does not hang after applying this fix.

stephenkoo commented 6 years ago

Thank you @ikatyang! Appreciate it.