This Article IsCreated at don't-know-whenLast Modified at 2023-11-01Referenced as ia.www.f09

JSON to Typescript

Introducing quicktype!

I used this tool for a long time. It converts JSON file into typescript type definition (schema) by guessing.

It is very useful when parsing through data you don’t have a schema for. With this tool, you won’t even miss a optional property again.

Quick Usage

$ pnpm i -g quicktype
$ quicktype person.json -o Person.ts