JSON ke TypeScript
JSON ke TypeScript
Berjalan di browser Anda · Tanpa unggah
Alat ini dan petunjuk di halaman ini untuk sementara berbahasa Inggris. Cara kerjanya sama: semuanya berjalan di browser Anda.
Generate TypeScript
Browser Anda terlalu lama untuk menjalankan alat ini. Perbarui browser Anda, atau gunakan versi terbaru Chrome, Edge, Firefox, atau Safari.
- Tidak ada yang keluar dari perangkat Anda
- Tanpa batas ukuran dari server
- Tanpa daftar, tanpa watermark
- Gratis
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.
Pertanyaan umum
Is my JSON uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.