🌓 主题
🔷 JSON 转 TypeScript
将 JSON 数据自动转换为 TypeScript 接口定义
用户数据
API 响应
配置文件
嵌套对象
接口名称:
添加 export
所有属性可选
只读属性
使用 type 替代 interface
📥 JSON 输入
格式化
清空
{ "id": 1, "name": "John Doe", "email": "john@example.com", "age": 30, "isActive": true, "tags": ["developer", "designer"], "address": { "street": "123 Main St", "city": "New York", "zipCode": "10001" }, "createdAt": "2024-01-15T10:30:00Z" }
📤 TypeScript 输出
复制
下载
已复制到剪贴板