JSON Input
TypeScript Output
type Root = Root;
interface Address {
street: string;
city: string;
country: string;
}
interface Post {
title: string;
published: boolean;
tags?: string[];
views?: number;
}
interface Root {
id: number;
name: string;
email: string;
isActive: boolean;
address: Address;
roles: string[];
posts: Post[];
}