3 ms·
Thank you - yes, I've dabbled with io-ts, though I'm still learning how to wield its power. > Opt-in runtime checks for SQL queries Ah right, I do see in the
by lioeters 6y ago
Thank you - yes, I've dabbled with io-ts, though I'm still learning how to wield its power.
> Opt-in runtime checks for SQL queries
Ah right, I do see in the repo for PgTyped that it's on the roadmap. That does sound useful!
I'm hoping that one of these days, TypeScript will support a more generic runtime type check, somehow closer to the language/TSC-level rather than userland libraries, plugins/transforms, or a parallel compiler/build step.
At the moment, I use a fork of typescript-json-schema ¹ for my purposes.
¹ https://github.com/YousefED/typescript-json-schema https://github.com/YousefED/typescript-json-schema