4 ms·
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
by ToJans 3y 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.
- arnejenssen 3y agoI'm using fp-ts https://gcanti.github.io/fp-ts/ https://gcanti.github.io/fp-ts/
- ToJans 3y agoGreat tip; thank you!
- douglasisshiny 3y agofp-ts is great and still has active development but it has also been folded into effect-ts (https://github.com/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 https://effect.website/docs/getting-started). I'm not associated with effect-ts at all.