Loading
Turn a JSON sample into TypeScript interfaces and a matching Zod schema.
Have a project idea or need expert guidance? One message, one engineer, no account manager.
The name given to the outermost type
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;
}