isValueTier()
Value-tier messages (DATA/RESOLVED) occupy the tier-3 slot.
Import
Section titled “Import”import { isValueTier } from "@graphrefly/ts/core";Signature
Section titled “Signature”function isValueTier(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 { isValueTier } from "@graphrefly/ts/core";Source
Section titled “Source”packages/ts/src/protocol/messages.ts