Skip to content

AccessWithIndexCallback

AccessWithIndexCallback<TData, TUser, TOrg, TIndexFields> = (props) => boolean | AccessIndexSelection<TData, TIndexFields>

Defined in: packages/core/src/access/types.ts:239

The callback form of a rule’s index half, for a range that depends on the caller. Returns { name, range } to narrow through an index, true to add no restriction, or false to deny.

TData

TUser

TOrg

TIndexFields extends Record<string, readonly string[]>

AccessRuleProps<TUser, TOrg>

boolean | AccessIndexSelection<TData, TIndexFields>