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.
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 forpipe
andcompose
, sincereduce
andreduceRight
only want to operate onFn
, 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.