Type Genius

Alpha v0.0.12

GitHubNPM

Generate Typescript types from any JSON object.

Paste your own JSON below 👇

{
"name": "Fetch Posts",
"route": "/api/v1/posts?author=mike+carbone",
"description": "Fetch list of posts.",
"operation_start": 1125108643.4489841,
"operation_end": 1125108810.4074783,
"operation_duration": 166.95849418640137,
"request_failed": false,
"http_status": 200,
"http_method": "GET",
"params": {
"author": "mike carbone"
},
"results": {
"data": [
{
"id": "194fa24b-28gg-4d75-8e8c-b045f5370f67",
"author_id": "215gb35c-28ff-4d75-8e8c-b042f3320f89",
"created_at": "2022-12-01T00:31:19.452Z",
"content": "Hello world",
"likes": 451,
"comments": 22,
"title": "Mastering Product & Distribution",
"slug": "mastering-product-and-distribution"
},
{
"id": "194fa24b-28gg-4d75-8e8c-b045f5370f67",
"author_id": "215gb35c-28ff-4d75-8e8c-b042f3320f89",
"created_at": "2022-12-01T00:31:19.452Z",
"content": "Hello world",
"likes": 223,
"comments": 12,
"title": "Say No To Premature Optimization",
"slug": "say-no-to-premature-optimization"
}
]
}
}