RobinMalfait / lazy-collections

Collection of fast and lazy operations
MIT License
407 stars 24 forks source link

Ensure that the `types` are generated properly #32

Closed AlexVipond closed 1 year ago

AlexVipond commented 1 year ago

Noticed in the insiders build that we lost type definitions—this PR restores them.

Once I added the --dts flag, I started getting TS errors for pipe and compose, since reduce and reduceRight only want to operate on Fn, not the union type. The type assertion is a decent workaround, but I don't love it—maybe you know a better way to fix.

RobinMalfait commented 1 year ago

Hey, thanks so much for this contribution! 🙏

I indeed lost that information 🙈