Function useRoles

  • A hook that allow to create a service role mapping

    Returns

    Type Parameters

    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)>

Generated using TypeDoc