JSON’dan TypeScript’e
JSON’dan TypeScript’e
Tarayıcınızda çalışır · Yükleme yok
Aracın kendisi ve bu sayfadaki talimatlar şimdilik İngilizce. Aynı şekilde çalışır: her şey tarayıcınızda gerçekleşir.
Generate TypeScript
Tarayıcınız bu araç için çok eski. Lütfen güncelleyin ya da Chrome, Edge, Firefox veya Safari’nin güncel bir sürümünü kullanın.
- Hiçbir şey cihazınızdan çıkmaz
- Sunucu kaynaklı boyut sınırı yok
- Kayıt yok, filigran yok
- Ücretsiz
How to convert JSON to TypeScript
- Paste your JSON, or try the example.
- Choose interface or type, export and optional fields.
- Copy or download the TypeScript.
What you get
- An interface for every object, named after its key.
- Optional fields (name?: string) for fields missing from some array items.
- Union types (string | null) where values differ.
- Keys that aren't valid names (like "created-at") are quoted.
Sık sorulan sorular
Is my JSON uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.