Runtime type system for IO decoding/encoding
Another solution is to have an abstraction layer on top of the API that generates the types and fallback values for you (you need to have a contract with your API, using stuff like swagger, GraphQL, or others). You can also use libs such as io-ts which does all the runtime checking for you while keeping it type-safe in dev.
Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.
how to strictly type this?
1 project | reddit.com/r/typescript | 19 Nov 2022
Notes on Advanced TypeScript: Runtime Validations
2 projects | dev.to | 4 May 2022
Announcing TypeScript 4.6
Clipanion: Type-safe CLI library
Validate Json data at runtime?
1 project | reddit.com/r/Angular2 | 18 Sep 2021