You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minimal structural type for anything with a CASL-style can method — what
the rule layer needs to check an action against a subject.
Remarks
A typed GraphQLAbility satisfies it; the method shape keeps
type-checking for consumers who annotate their ability with this type, unlike
a (...args: any[]) shim.
The optional third argument is CASL's field-level check
(can('read', user, 'email')), which createCan(...).fields uses to decide a
whole type's fields from the ability alone.