Skip to content

Rule

Rule<R> = AccessFn<R> & object

Defined in: packages/schema/src/access/rule.ts:5

An access function that can be combined with plain functions or other rules.

and: (other) => Rule<R>

Both must allow; filters are ANDed. The other side is not run once this one denies.

AccessFn<R>

Rule<R>

or: (other) => Rule<R>

Either may allow; filters are ORed. The other side is not run once this one allows.

AccessFn<R>

Rule<R>

R = any