在线工具集
正在加载,请稍候…
正在加载,请稍候…
粘贴 JSON 自动生成 TypeScript 类型定义,支持嵌套对象、数组元素类型推断与可选字段,一键复制。
export interface Address {
city: string;
zipcode: string;
}
export interface Course {
title: string;
score: number;
}
export interface User {
id: number;
name: string;
email: string;
age: number;
active: boolean;
tags: string[];
address: Address;
courses: Course[];
}说明