Skip to content
PACKAGES

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 { isTerminal } from "@graphrefly/ts/core";
function isTerminal(t: MessageType): boolean
ParameterTypeDescription
tMessageTypet value used by the helper.

true when the value matches the expected shape.

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

packages/ts/src/protocol/messages.ts