Blog

Definitional and how-to posts that help search engines and humans understand TypeGen.

What is TypeGen — and when to use it

TypeGen is a tool that infers clean TypeScript type definitions from sample JSON or CSV, including a Zod schema option, and flags ambiguous fields. Use it when you need accurate types without writing them by hand.

How to infer a TypeScript type definition in 10 minutes

A step-by-step for a first TypeScript type definition using TypeGen: paste sample JSON or CSV, pick an output style, then review the inferred types and flagged fields.

Common TypeScript type definition mistakes (and how to avoid them)

5 recurring errors teams make in a TypeScript type definition, with fixes: guessing field types, ignoring nullable fields, missing unknown keys, mixing type aliases and interfaces, and skipping the Zod option.

TypeGen vs. doing it manually

Trade-offs: speed, cost, and where human review still wins.