What it is
Generating TypeScript types from a JSON sample infers a shape from the actual values present, giving you a starting type definition without writing it by hand.
When to use it
Use this when scaffolding types for an API response you do not control, prototyping quickly, or converting a snake_case backend payload into idiomatic TypeScript.
Gotchas & limits
Inferred types reflect only the sample you pasted; optional fields, unions, and nullable values that do not appear in your sample will be missing from the generated type.