JSON to TypeScript

Paste JSON and get clean, modern TypeScript types with sensible naming.

Declaration style

Input

21 lines

Output

3 declarations
export interface IRootInterface {
  id: string;
  name: string;
  owner: IOwner;
  tools: ITool[];
  tags: string[];
  launchedAt: null;
}

export interface IOwner {
  name: string;
  role: string;
}

export interface ITool {
  id: number;
  name: string;
  ready?: boolean;
}