Preparing search index...
The search index is not available
@kaynooo/utils
@kaynooo/utils
isGrantedUtils
declareIsGranted
Function declareIsGranted
declare
Is
Granted
<
RoleType
,
RoleHierarchy
>
(
hierarchy
)
:
(
(
role
:
RoleType
,
userRoles
:
RoleType
[]
)
=>
boolean
)
Type Parameters
RoleType
extends
string
RoleHierarchy
extends
Record
<
RoleType
,
RoleType
[]
>
Parameters
hierarchy
:
RoleHierarchy
Returns
(
(
role
:
RoleType
,
userRoles
:
RoleType
[]
)
=>
boolean
)
(
role
,
userRoles
)
:
boolean
Parameters
role
:
RoleType
userRoles
:
RoleType
[]
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@kaynooo/utils
Loading...