Generation toolLocal only

Object to Types

Generate TypeScript interfaces and aliases from a real JSON payload without leaving the browser.
Root name
JSON object
Generated types
Generated types
Interfaces3
Lines17
export interface SiteSnapshotChecksItem {
  name: string;
  ok: boolean;
  value: number | string;
}

export interface SiteSnapshotMetrics {
  cacheHit: boolean;
  latencyMs: number;
}

export interface SiteSnapshot {
  checks: SiteSnapshotChecksItem[];
  environment: string;
  metrics: SiteSnapshotMetrics;
  requestId: string;
}