JSON to Type Definition
A
Keith Clark
Project
Input
Type Name
The name of the object or type to create documention for.
Type Format
JSDoc
TypeScript
Debug
Sets the output format of the generated type definitions.
Prefix types with parent name
If checked, the name of any child types will be prefixed with the parent type name.
Include descriptions
If checked, properties will be annotated with a description comment. These can appear in your editor as hints.
Input JSON
{ "id": 1, "name": "Tee-shirt", "description": "A funky looking tee", "availability": { "inStock": true, "onBackOrder": false }, "price": { "value": 5.30, "currency": "GBP" }, "colors": [ "red", "green", "blue" ], "sizes": [ 40, 42, 44 ], "alternatives": [ { "id": 4, "name": "Funky shorts" } ] }
Type Documentation
Copy