Skip to content

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.

Get in touch