Generate TypeScript interfaces from JSON data

preview_player
Показать описание
Autocomplete JSON property names in JavaScript by generating TypeScript interfaces from sample JSON data. Check out the below video for a live demo.
Huge win for developer productivity and no more child property name typos!
Add TS file to application working folder
Enjoy autocomplete with Visual Studio Code!
Рекомендации по теме
Комментарии
Автор

Thank you for sharing this informative video! 🦄🖐🏾

pandarzzz
Автор

Thanks for sharing this. I have converted my .js project into .ts and got some troubles with reading from my json files (e.g. No index signature with a parameter of type 'string' was found on type), I hope this can help me to solve these.

danielwilms
Автор

Great video! and then how can we link the schema with the sample.json

alfonsoflores
Автор

getting error " - Failed: Cannot read property 'GlossDiv' of undefined" printing

tejkumar
Автор

It doesn't work with functions though :/
i wish i could autocomplete something like
you think it's possible somehow?

annad.