marpple / FxTS

A functional programming library for TypeScript/JavaScript
https://fxts.dev
Apache License 2.0
862 stars 63 forks source link

bug: `flat` type not returned properly in `fx` #266

Closed ppeeou closed 3 months ago

ppeeou commented 3 months ago

Bug Report

flat fails inference in fx

💻 Code

fx(['a','b',['c']])
  .flat()
  .reduce((a, b) => a + b);

🙁 Actual behavior

🙂 Expected behavior


Version Information