BeanCloud
首頁
網站導覽
常用工具
線上遊戲
zh-TW
登入
建立帳號
返回此分類
已上線
JSON 轉 TypeScript 型別
開發工具:命名轉換、JSON 編輯與格式化、程式碼格式化、正則測試、crontab 時間與 JSON 轉 TypeScript。
JSON 輸入
{"id":1,"name":"bean","tags":["a"],"meta":{"ok":true}}
TypeScript 輸出
interface Rootmeta { "ok": boolean; } interface Root { "id": number; "name": string; "tags": string[]; "meta": Rootmeta; } type Root = Root;