Boatstack TypeScript SDK
    Preparing search index...

    Type Alias Predicate

    Predicate:
        | { true: boolean }
        | { fact: { facet: string; statuses?: string[]; values?: string[] } }
        | { all: Predicate[] }
        | { any: Predicate[] }
        | { not: Predicate }

    A declarative condition over runtime state facts.

    Predicates influence executable transition and target semantics. A frontend author may combine facts, but only the runtime decides whether they hold.