renderjson icon indicating copy to clipboard operation
renderjson copied to clipboard

WIP Convert to typescript

Open Almenon opened this issue 5 years ago • 1 comments

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 avatar Dec 07 '19 20:12 Almenon

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

Almenon avatar Dec 07 '19 20:12 Almenon