JSON to TypeScript & Zod
Turn a JSON sample into TypeScript interfaces and a matching Zod schema.
The name given to the outermost type
TypeScript interfaces
Root type: Invoice
export interface Client {
name: string;
abn: string;
}
export interface Item {
description: string;
hours: number;
rate: number;
}
export interface Invoice {
id: string;
issuedOn: string;
client: Client;
items: Item[];
paid: boolean;
}Let’s build something amazing.
Have a project idea or need expert guidance? One message, one engineer, no account manager.
- jayden@mdt.id.au
- +61 431 149 567
- 7:00 am – 7:00 pm (Mon–Sun)

