Hacker GitHub

← All repos

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

Mentions per year 4 mentions · busiest year 2025 (3)
20082026
  1. 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…
  2. …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…
  3. …reflect type User = { id: number; username: string; // ... }; Edit: just remembered about this one: https://github.com/GoogleFeud/ts-runtime-checks
  4. …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