GraphReFlyTS

API Reference

isValueTier()

Value-tier messages (DATA/RESOLVED) occupy the tier-3 slot.

Import

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

Signature

function isValueTier(t: MessageType): boolean

Parameters

ParameterTypeDescription
tMessageTypet value used by the helper.

Returns

true when the value matches the expected shape.

Example

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

Source

packages/ts/src/protocol/messages.ts