Hacker News new | ask | show | jobs
by ToJans 1111 days ago
Looking forward to a proper monad lib in Typescript!

However, I can only assume that molding/abusing types like this might have a big - if not huge - impact on compilation times...

I've created a template-like generic type that allows you compose multiple kinds and replace any property of an object with a function returning the same type as the property, and vscode has such a hard time inferring types that intellisense has become unusable in this context.

Curious to see how this will turn out.

1 comments

fp-ts is great and still has active development but it has also been folded into effect-ts (https://github.com/Effect-TS/) which is based on Scala ZIO. I think long-term it will have a larger ecosystem, more active development and a better DX. The docs are far from complete, but give a good intro (https://effect.website/docs/getting-started).

I'm not associated with effect-ts at all.

Great tip; thank you!