JSON เป็น TypeScript

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

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

รู้เบื้องต้นเกี่ยวกับเครื่องมือ

เครื่องมือนี้เป็นเครื่องมือออนไลน์สำหรับการแปลงสตริง JSON เป็นคำจำกัดความอินเทอร์เฟซ TypeScript