Skip to content

composeRules

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/reader-access/visibility.util.ts

Compose a document's own rule with its category ancestor chain into ONE effective rule (all must pass). null when nothing in the chain has a rule.

Signature

ts
function composeRules(rules: Array<unknown | null | undefined>): VisibilityRule | null

Parameters

NameType
rules`Array<unknown

Returns: VisibilityRule | null

Was this page helpful?

Download as PDF