Skip to content

Commit 7fa1781

Browse files
committed
main 🧊 add jsdoc for use permission
1 parent 633dce4 commit 7fa1781

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/hooks/usePermission/usePermission.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export interface UsePermissionReturn {
4242
* @description - Hook that gives you the state of permission
4343
* @category Browser
4444
*
45+
* @param {UsePermissionName} permissionDescriptorName - The permission name
46+
* @param {boolean} [options.enabled=true] - Whether the permission is enabled
4547
* @returns {UsePermissionReturn} An object containing the state and the supported status
4648
*
4749
* @example

0 commit comments

Comments
 (0)