Skip to content

WithLookups

WithLookups<TUser> = Record<string, LookupFn<TUser>>

Defined in: packages/permissions/src/types.ts:241

A map of named prerequisite lookups for a grant.

Each value is a LookupFn whose resolved result is passed to the grant’s where clause via the third lookups argument under the same key.

TUser = unknown

The user type (typed via definePermissions<TUser>).