GrantFn
GrantFn<
TUser> = (action,subject,options?) =>Grant
Defined in: packages/permissions/src/types.ts:101
Type-safe grant builder function, parameterized by the user type.
Used when grants is provided as a callback in PermissionsConfig
so that where clauses receive a correctly typed user parameter.
Type Parameters
Section titled “Type Parameters”TUser
The user type passed to where clause callbacks.
Parameters
Section titled “Parameters”action
Section titled “action”subject
Section titled “subject”DrizzleTable | "all"
options?
Section titled “options?”where?
Section titled “where?”(columns, user) => DrizzleSQL | undefined