When should I use the TypeScript interface converter instead of Zod?
Use the interface converter when you need static typing only. Choose Zod when you also need runtime validation.
Does the TypeScript converter support nested arrays and child objects?
Yes. Nested objects and arrays are expanded into reusable interface definitions based on the sample payload.
What to expect on this route
Use the TypeScript converter when you need readable frontend contracts from a representative JSON sample and want to confirm the inferred model shape before copying it into code.
What makes a good sample
Include the nested objects, arrays, and optional fields your app actually consumes.
Keep the payload realistic so the generated interfaces reflect production field names and shapes.
Prefer one stable example over many partial fragments when you want predictable output.
What the converter returns
Nested child interfaces are inferred from the JSON structure in the sample payload.
Scalar values map into TypeScript-friendly field types that stay readable in frontend code.
The output remains copy-ready so it can move straight into shared types or API client modules.
Checks before you copy
Review optional fields carefully when the sample can omit values in some responses.
Rename the root model if your project uses a stronger domain-specific naming convention.
If you also need runtime validation, move from plain interfaces into a stricter schema route afterward.