3 ms·
I learned typescript for a project I spent 9-10 months on. It wasn't that hard to learn but... ugh. On many levels. There are problems where it's typechecking i
by adamc 2y ago
I learned typescript for a project I spent 9-10 months on. It wasn't that hard to learn but... ugh. On many levels. There are problems where it's typechecking is helpful (enough) for, but the degradation in readability was quite noticeable, and the fact that its abstractions only work at compile time was an endless thorn in the side.
Not a fan.
- shepherdjerred 2y agoZod (and similar libraries) solve that last issue: https://zod.dev/ https://zod.dev/ You can, for example, declare your type and check at runtime if some object matches the type.