GraphReFlyTS

API Reference

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

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

Signature

function isTerminal(t: MessageType): boolean

Parameters

ParameterTypeDescription
tMessageTypet value used by the helper.

Returns

true when the value matches the expected shape.

Example

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

Source

packages/ts/src/protocol/messages.ts