volenslavchev/ts-runtime-checks
View on GitHub ↗ ★ 407 TypeScript
A typescript transformer that automatically generates validation code from your types.
4 mentions on Hacker News by 3 people: 0 stories, 4 comments · first 2024-07-18 · latest 2025-09-22
20082026
-
There are ways if you're ok with a build step, e.g. https://typia.io/ or https://github.com/GoogleFeud/ts-runtime-checks Although perhaps that's not what you mean. I found these through this https://github.com/moltar/typescript-runtime-type…
comment by sebws · 2025-09-22 · in Cap'n Web: a new RPC system for browsers and web servers -
…compiler transforms that do it That said, the two most promising approaches I've found so far: 1. https://github.com/GoogleFeud/ts-runtime-checks -- it does exactly what you describe 2. https://arktype.io/ -- a very interesting take on the…
comment by ryanrasti · 2025-09-22 · in Cap'n Web: a new RPC system for browsers and web servers -
…reflect type User = { id: number; username: string; // ... }; Edit: just remembered about this one: https://github.com/GoogleFeud/ts-runtime-checks
comment by notpushkin · 2025-04-12 · in ArkType: Ergonomic TS validator 100x faster than Zod -
…looking at typescript-runtime-type-benchmarks [1]. There’s a few other similar things there too [0] https://github.com/GoogleFeud/ts-runtime-checks [1] https://github.com/moltar/typescript-runtime-type-benchmarks
comment by sebws · 2024-07-18 · in What can TypeScript learn from Zig? What can Zig learn from TypeScript?