isEventMessage()
Checks whether a value is an event message.
Import
Section titled “Import”import { isEventMessage } from "@graphrefly/ts/messaging";Signature
Section titled “Signature”function isEventMessage(value: unknown): value is EventMessageParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Section titled “Returns”true when the value matches the expected shape.
Example
Section titled “Example”import { isEventMessage } from "@graphrefly/ts/messaging";Source
Section titled “Source”packages/ts/src/messaging/event-message.ts