JSON para TypeScript

export interface Address {
  city: string;
  zip: string;
}

export interface RootObject {
  name: string;
  age: number;
  address: Address;
}

Introdução à ferramenta

Esta ferramenta é uma ferramenta online para converter strings JSON em definições de interfaces TypeScript.