- useRoles<TRoles>(bindings: TRoles, deps?: DependencyList): {
roleManager: RoleManager;
roles: Record<keyof TRoles, JDService>;
updates: Record<keyof TRoles, ((service: JDService) => void)>;
}
-
Parameters
-
bindings: TRoles
-
deps: DependencyList = []
Returns {
roleManager: RoleManager;
roles: Record<keyof TRoles, JDService>;
updates: Record<keyof TRoles, ((service: JDService) => void)>;
}
-
roleManager: RoleManager
-
roles: Record<keyof TRoles, JDService>
-
updates: Record<keyof TRoles, ((service: JDService) => void)>
A hook that allow to create a service role mapping
Returns