JSON เป็น Types

JSON เป็น Types

สร้าง type/interface จากตัวอย่าง JSON (TypeScript, Go, Python)

ตัวเลือก
export interface Root {
  id: number;
  name: string;
  active: boolean;
  score: number;
  tags: string[];
  profile: RootProfile;
  projects: RootProjectsItem[];
}

export interface RootProfile {
  city: string;
  website: null;
}

export interface RootProjectsItem {
  title: string;
  stars: number;
  archived?: boolean;
}
ภาษาtypescript
จำนวน type3