Skip to main content

Abilities

The ability is the action that the user can perform. Out of the box the following are present create, read, update, delete, manage. manage is special, because it will match all the abilities

Extending the abilities#

import { GuardBuilder } from "@blitz-guard/core"
type ExtendedResourceTypes = ...
type ExtendedAbilityTypes = "send email"
const Guard = GuardBuilder<ExtendedResourceTypes, ExtendedAbilityTypes>(
...