栗志
首页
关于我
工具箱
联系我
中
JSON
JSON → TypeScript
根据 JSON 自动推导 TypeScript interface。
☆ 收藏
JSON → TypeScript
输入 · JSON
清空
{ "name": "Alex Chen", "role": "Product Engineer", "active": true, "skills": ["TypeScript", "React", "Node.js", "PostgreSQL"], "profile": { "website": "https://example.com", "email": "alex@example.com" } }
输出 · TypeScript
复制
export interface Profile { website: string; email: string; } export interface Root { name: string; role: string; active: boolean; skills: string[]; profile: Profile; }