TypeScript Generator
root name:
input.json✓ valid
output.types.ts30 lines
interface Profile {
  firstName: string;
  lastName: string;
  avatar: string;
  bio?: null;
}

interface Posts {
  id: number;
  title: string;
  published: boolean;
  views: number;
}

interface Settings {
  theme: string;
  notifications: boolean;
  language: string;
}

interface Root {
  id: number;
  username: string;
  email: string;
  isPremium: boolean;
  score: number;
  profile: Profile;
  posts: Posts[];
  settings: Settings;
}
Generates TypeScript interfaces from JSON structure. Nested objects become separate interfaces.