News for hackers. Stuff that matters.
Re:We don't need runtime type checks by egeozcan on Thursday March 03, 2022 @02:31PM (#30545602)
That works wonderful as long as you have a flexible type system like Typescript. For me io-ts[0] has been a godsend when I want runtime type-checking on io boundaries (and you may have a lot of them in a front-end application).

[0]: https://github.com/gcanti/io-ts/blob/master/index.md#typescr...

Re:We don't need runtime type checks by purplerabbit on Thursday March 03, 2022 @02:37PM (#30545671)
These sorts of libraries are great in my experience. Here's a comparison of some of the more popular ones:

https://github.com/colinhacks/zod#comparison