JSON to TypeScript
Infer TypeScript interfaces from a JSON object sample.
How to use
- Paste a JSON object.
- Generate the interfaces.
- Copy the output.
What it supports
Types are inferred from a single sample — keys absent from the sample and values that are null everywhere cannot be detected. Identically-shaped objects share one interface; non-identifier keys are quoted.