aragon / use-viewport

🌅 useViewport() · Viewport sizes and helper functions for responsive applications, quick and easy.
MIT License
12 stars 1 forks source link

Move to TypeScript #9

Closed andy-hook closed 4 years ago

andy-hook commented 4 years ago

I wanted to start setting up typescript for some of our packages and this one was a simple, easy first go.

I thought it was a good idea to standardise around TSDX inline with @bpierre's work on use-wallet https://github.com/aragon/use-wallet/pull/51

I moved us away from class components but otherwise the logic is the same but typed.