JSON 转 TypeScript
从 JSON 生成 TypeScript 类型定义
interface Root = {
id: number;
name: string;
email: string;
active: boolean;
tags: string[];
profile: {
age: number;
city: string;
};
}评论区(0)
登录后即可发表评论
暂无评论,来发表第一条评论吧
从 JSON 生成 TypeScript 类型定义
interface Root = {
id: number;
name: string;
email: string;
active: boolean;
tags: string[];
profile: {
age: number;
city: string;
};
}登录后即可发表评论
暂无评论,来发表第一条评论吧