caldwell / renderjson

Render JSON into collapsible HTML
http://caldwell.github.io/renderjson
415 stars 91 forks source link

WIP Convert to typescript #37

Open Almenon opened 4 years ago

Almenon commented 4 years ago

This converts renderjson to typescript. Typescript has a number of benefits like type safety, catching common mistakes, easier refactoring, and better intellisense.

It also adds tests to make sure things are still working.

Make sure to run prePublish before publishing a new version. Although theoretically backwards compatible, this is a major change so I've updated the version number to v2 just to be safe.

Unfortunately I just realized it doesn't work in the browser because of the use of "exports".... crap

Why is the JS ecosystem so complicated?? 😭

Almenon commented 4 years ago

WIP = work in progress (don't merge yet)