JSON para Interface TypeScript

Cole um JSON e gere automaticamente definições de interface TypeScript. Objetos aninhados geram interfaces separadas. Processamento 100% no navegador.

JSON 输入
TypeScript interface
在左边粘贴 JSON
自动识别嵌套对象生成多个 interface, 共有结构会复用; 数组类型会推断元素类型, 联合类型会用 union。

Ferramentas para Desenvolvedores · Ferramentas relacionadas