July 3, 2020

Generate TS Interfaces from JSON or XML

While working on XJS 3, I had to frequently parse the XML strings that the XBC core is sending to me, and then create an interface for TS so that tslint would stop complaining my use of any.

With that, I created a tool to automatically generate the interfaces for me, along with a JSON output just so that I can inspect how the XML would look like when parsed.

Link: https://ts-interface-from-json.vercel.app/

This site does not run any external JavaScript, no tracking, no niffnaffs.