jklmli / monapt

Options, Tries, and Futures for JavaScript / TypeScript
MIT License
172 stars 13 forks source link

Error when use API in Angular 5 + typescript project #21

Closed tosun-si closed 6 years ago

tosun-si commented 6 years ago

Hi. I want to use this API in a Angular 5 + typescript project (and webpack), but i have an error in the compilation.

ERROR in node_modules/monapt/dist/src/future/future.d.ts(1,23): error TS2688: Cannot find type definition file for 'when'.

Thanks for your help.

jklmli commented 6 years ago

This was fixed in https://github.com/jiaweihli/monapt/commit/7c0814c3, and was released in 2.0.0 - give that a shot! Re-open this if you're still seeing issues.