JSON a TypeScript

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

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

Introduzione al tool

Questo strumento è uno strumento online per convertire le stringhe JSON in definizioni di interfacce TypeScript.