Skip to content
PACKAGES

isInvalidErrorPayload()

R-data-payload: ERROR payloads must not collide with terminal metadata shorthand.

import { isInvalidErrorPayload } from "@graphrefly/ts/core";
function isInvalidErrorPayload(v: unknown): boolean
ParameterTypeDescription
vunknownv value used by the helper.

true when the value matches the expected shape.

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

packages/ts/src/protocol/messages.ts