Skip to content

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.

TDoc

Document shape the values are typed against.

AccessConditionResult

The value a rule’s constraints callback returned.

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.