GraphReFlyTS

API Reference

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

import { isUpAllowed } from "@graphrefly/ts/core";

Signature

function isUpAllowed(t: MessageType): boolean

Parameters

ParameterTypeDescription
tMessageTypet value used by the helper.

Returns

true when the value matches the expected shape.

Example

import { isUpAllowed } from "@graphrefly/ts/core";

Source

packages/ts/src/protocol/messages.ts