readAccessCondition
readAccessCondition<
TDoc>(result):AccessCondition<TDoc> |undefined
Defined in: packages/core/src/access/createAccessQueryBuilder.ts:118
Reads the condition a returned terminal carries.
The counterpart to the casts above: AccessConditionResult is nominal and has no
public shape, so only this module can get the condition back out.
Type Parameters
Section titled “Type Parameters”TDoc
Document shape the values are typed against.
Parameters
Section titled “Parameters”result
Section titled “result”The value a rule’s constraints callback returned.
Returns
Section titled “Returns”AccessCondition<TDoc> | undefined
Its condition, or undefined when result did not come from this
module — unreachable through the types, and treated as “no condition” so a rule
that reached past them cannot silently widen into an unfiltered read.