isUpAllowed()
ctx.up carries control/demand tiers only (R-ctx-up / D269): DIRTY, PAUSE, RESUME, PULL, INVALIDATE, TEARDOWN. DATA/RESOLVED (tier 3) and COMPLETE/ERROR (tier 5) are down-only.
Import
Section titled “Import”import { isUpAllowed } from "@graphrefly/ts/core";Signature
Section titled “Signature”function isUpAllowed(t: MessageType): booleanParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
t | MessageType | t value used by the helper. |
Returns
Section titled “Returns”true when the value matches the expected shape.
Example
Section titled “Example”import { isUpAllowed } from "@graphrefly/ts/core";Source
Section titled “Source”packages/ts/src/protocol/messages.ts