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.
Type Parameters
Section titled “Type Parameters”TData
TUser
TOrg
TIndexFields
Section titled “TIndexFields”TIndexFields extends Record<string, readonly string[]>
Parameters
Section titled “Parameters”AccessRuleProps<TUser, TOrg>
Returns
Section titled “Returns”boolean | AccessIndexSelection<TData, TIndexFields>