issues
search
streamich
/
react-use
React Hooks — 👍
http://streamich.github.io/react-use
The Unlicense
41.93k
stars
3.16k
forks
source link
refactor: modify usePermission for compatible with TypeScript 4.5
#2548
Open
gelove
opened
8 months ago
gelove
commented
8 months ago
Description
Type of change
[x] Bug fix
(non-breaking change which fixes an issue)
[ ] New feature
(non-breaking change which adds functionality)
[ ]
Breaking change
(fix or feature that would cause existing functionality to not work as before)
Checklist
[x] Read the
Contributing Guide
[x] Perform a code self-review
[x] Comment the code, particularly in hard-to-understand areas
[x] Add documentation
[x] Add hook's story at Storybook
[x] Cover changes with tests
[x] Ensure the test suite passes (
yarn test
)
[x] Provide 100% tests coverage
[ ] Make sure code lints (
yarn lint
). Fix it with
yarn lint:fix
in case of failure.
[ ] Make sure types are fine (
yarn lint:types
).
Description
Type of change
Checklist
yarn test
)yarn lint
). Fix it withyarn lint:fix
in case of failure.yarn lint:types
).