Interface 'IMidiPermissionDescriptor' incorrectly extends interface 'PermissionDescriptor'
See original GitHub issueWhat is the current behavior?
Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have extra dependencies other than react-use
. Paste the link to your JSFiddle or CodeSandbox example below:
What is the expected behavior?
A little about versions:
- OS:
- Browser (vendor and version):
- React:
react-use
:- Did this worked in the previous package version?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:14
- Comments:16
Top Results From Across the Web
Interface incorrectly extends interface - Stack Overflow
In typescript playground (click) everything seems to be okay. What is it happening? Typescript version: 2.4.2. typescript · interface.
Read more >How to Easily Extend Interfaces in TypeScript - Webtips
Learn how you can extend your interfaces in TypeScript with other ... error: // Interface 'Employee' incorrectly extends interface 'Person'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a workaround to this you can change your imports to direct imports:
As long as you’re not using usePermission you can stop the build issue. You can migrate to new library as they become available or start to write your own replacements.
Hi! @react-hookz/web, the new library by one of
react-use
’s former maintainers (background here and here) has resolved this outstanding type issue. It might be worth taking a look.For those interested, there’s an official migration guide for migrating from react-use to @react-hookz/web.