Web & Dev
JSON to TypeScript
Infer TypeScript interfaces from a JSON sample, including nested objects and arrays.
JSON sample
Options
TypeScript
export interface Root {
id: number;
name: string;
active: boolean;
address: Address;
tags: string[];
}
export interface Address {
city: string;
zip?: null;
}