How it works
Each value in the JSON is inspected to infer its TypeScript type: strings,
numbers, and booleans map directly, arrays become T[] (or a union if
they mix types), and nested objects become their own named interface,
referenced from wherever they appeared.
A starting point, not a schema
This generates types from one example, so it cannot know whether a field is truly always present, or whether a number might sometimes be null in data you have not shown it. Treat the result as a first draft to refine against your actual API contract or schema.
Common uses
Quickly scaffolding types for an API response you have example data for, without hand-writing every interface, or double-checking that the interface you already wrote matches the shape of a real payload.