ZeeCoder / use-resize-observer

A React hook that allows you to use a ResizeObserver to measure an element's size.
MIT License
644 stars 42 forks source link

Type definitions for TypeScript #6

Closed imransl closed 5 years ago

imransl commented 5 years ago

I am using use-resize-observer with TypeScript and noticed there aren't any type definitions for it. It will be great, if it is included with the npm package. I have already created a small definitions file for our project to get it to work with TypeScript. I'll create a pull request with those changes.

ZeeCoder commented 5 years ago

Feel free to create a PR, I unfortunately haven't had the chance to look into Typescript yet.

imransl commented 5 years ago

I just created it: #7

ZeeCoder commented 5 years ago

Deployed as v3.1.0. Thanks mate 🙌