isTerminal()
A TERMINAL message = tier 5 (COMPLETE | ERROR), R-tier / D34. Detected via the CENTRAL tier
table, NOT a per-variant === "COMPLETE" || === "ERROR" check — so terminal routing stays
driven by the one const table (feedback_use_tier_for_signal_routing); discriminate COMPLETE vs
ERROR within the tier by the message type only where the handling actually differs.
Import
Section titled “Import”import { isTerminal } from "@graphrefly/ts/core";Signature
Section titled “Signature”function isTerminal(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 { isTerminal } from "@graphrefly/ts/core";Source
Section titled “Source”packages/ts/src/protocol/messages.ts