JSON to TypeScript
Turn any JSON payload into clean TypeScript interfaces.
JSON input
TypeScript output
export interface Location {
city: string
country: string
}
export interface Profile {
title: string
location: Location
}
export interface Project {
name: string
stars: number
archived?: boolean
}
export interface Root {
id: number
name: string
isActive: boolean
roles: string[]
profile: Profile
projects: Project[]
}