-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider declaration missing in index.d.ts #11
Comments
Same goes for the re-export of useResizeObserver. |
I feared this would happen. I'm not too well versed in TS but I added it as a courtesy to the many developers out there who love TS. I could use your help with adding interfaces to Please see #8 and microsoft/TypeScript#37861 for context. I will push up a branch with my stale WIP shortly. |
@ngnathan @gwitteveen I'm inviting you to contribute to envato/react-resize-observer-hook#3 |
Any updates on this? I noticed this issue while trying to build using Rollup.js. |
@artmsilva I'm not sure what the correct way forward is. On one hand I'd like to help TS users use this package (I'm not a TS user myself). On the other hand it feels redundant to write the entire I suppose I could export it with an explicit What do you think? |
@mdingena I think the latter is best in the interim. Thanks for being so responsive! |
I've marked envato/react-resize-observer-hook#3 as Ready For Review. It rewrites the JavaScript to TypeScript rather than just providing an Once that PR is merged, we can update this package's dependencies to resolve the issue. @artmsilva @ngnathan @gwitteveen I invite you all to please have a look at the linked PR. There is a lot going but could you please focus on the |
I'm waiting for TypeScript 4.2 to be released, which includes interfaces for It's currently scheduled for 23 February: microsoft/TypeScript#41601 |
Using React with TypeScript, I can't seem to import Provider.
Looking at the index.d.ts file, it looks like the interface to this is missing.
The text was updated successfully, but these errors were encountered: