isInvalidErrorPayload()
R-data-payload: ERROR payloads must not collide with terminal metadata shorthand.
Import
Section titled “Import”import { isInvalidErrorPayload } from "@graphrefly/ts/core";Signature
Section titled “Signature”function isInvalidErrorPayload(v: unknown): booleanParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
v | unknown | v value used by the helper. |
Returns
Section titled “Returns”true when the value matches the expected shape.
Example
Section titled “Example”import { isInvalidErrorPayload } from "@graphrefly/ts/core";Source
Section titled “Source”packages/ts/src/protocol/messages.ts