2 interfaces generated
JSON input
TypeScript interfaces
export interface Addre { street: string; city: string; country: string; zip?: string; } export interface Metadata { source: string; version: number; }
💡 How it works
- • Nested objects become separate named interfaces — names derived from their JSON key
- • Arrays union types across all elements; empty arrays become
unknown[] - •
nullvalues → optional fields (key?: string), orT | nullwith Strict nulls enabled - • Duplicate interface shapes are automatically deduplicated
- • Root interface appears at the top — nested interfaces below
- • Use readonly props to generate immutable interfaces, or ↓ .ts to save the file directly
🔍 Automate Your Type Generation and API Contract Workflow with AI
TypeScript types from JSON is just the start. In 20 minutes I'll audit your API and code generation workflows and show you where AI agents can handle schema validation, type safety, and automated client SDK generation.
Get Your Free AI Scan →