DevUtils-app icon indicating copy to clipboard operation
DevUtils-app copied to clipboard

[Feature] JSON to typescript types

Open figassis opened this issue 3 years ago • 2 comments

It would be awesome to be able to convert json objects into corresponding typescript types, like this tool https://jvilk.com/MakeTypes

figassis avatar Jul 19 '21 07:07 figassis

Thank you for the feature request, I'll look into this!

trungdq88 avatar Jul 19 '21 16:07 trungdq88

@trungdq88 Here’s two other examples:

  • https://app.quicktype.io/
  • https://transform.tools/json-to-typescript

Along with an implementation:

  • https://github.com/ritz078/transform/blob/master/pages/json-to-typescript.tsx

Based on https://github.com/evestera/json_typegen which supports other useful outputs like json schema too

jlarmstrongiv avatar Jul 25 '22 08:07 jlarmstrongiv