ZYBERMART ස්ථාපනය කරන්න

සෑම මෙවලමක්ම ඔබේ home screen එකෙන් හෝ dock එකෙන්, වෙනම කවුළුවක විවෘත කරන්න. ඔබ භාවිත කළ මෙවලම් offline ද ක්‍රියා කරයි.

JSON to TypeScript

API response එකක් වැනි JSON නියැදියක්, nested types සහ optional fields සමඟ TypeScript interfaces හෝ types බවට හරවන්න.

How to turn JSON into TypeScript

  1. Paste a sample of the JSON, such as an API response.
  2. Name the main type, and choose interface or type.
  3. Copy the result into your project. It updates as you type.

Need to check the JSON first? Use the JSON formatter.

Frequently asked questions

How are the types worked out?

From your sample JSON: strings, numbers and booleans become string, number and boolean; nested objects get their own interface named after their key; arrays become lists of the types inside them. If objects in an array don't all have a key, it becomes optional (key?).

What happens with null?

A key that's null in the sample becomes the type null (or, combined with other values in an array, for example string | null). Paste a sample with real values where you can, for more useful types.

Interface or type?

Both describe the same shapes. Interfaces can be extended and merged, and are the usual choice for object shapes; types can also describe unions. Pick what your codebase uses.

Is my JSON uploaded?

No. The types are made in your browser.

ZYBERMART වෙත පුරනය වන්න

ඔබේ CV, ඉන්වොයිසි, flashcards, සටහන් සහ සුරැකි මෙවලම් ඔබේ සියලු උපාංගවල තබා ගන්න. එය නොමිලේ, ගිණුමක් නැතිවත් මෙවලම් එලෙසම ක්‍රියා කරයි.

හෝ

මුරපදයක් අවශ්‍ය නැත. පුරනය වීමෙන් ඔබ නියමවලට එකඟ වේ; අපි ඔබේ දත්ත හසුරුවන ආකාරය රහස්‍යතා ප්‍රතිපත්තියෙන් බලන්න.

ඔබේ ගිණුම

ඉවත් වූ පසුත් ඔබේ වැඩවල පිටපතක් මෙම බ්‍රවුසරයේ ඉතිරි වේ. පොදු පරිගණකයක නම්, පසුව ඔබේ බ්‍රවුසර දත්ත මකන්න.

ඔබට සෑදීමට අවශ්‍ය කුමක්ද?

නිර්මාණ

සමාජ මාධ්‍ය

ලේඛන

අධ්‍යයනය

සංස්කරණය

මෙවලම් 282 සියල්ල බලන්න