Skip to content

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.

TUser

The user type passed to where clause callbacks.

PermissionAction

DrizzleTable | "all"

(columns, user) => DrizzleSQL | undefined

Grant