API Reference
fromTopic()
Creates a from topic.
Import
import { fromTopic } from "@graphrefly/ts/messaging";
Signature
function fromTopic(
bus: MessageBus<TTopic>,
topic: TTopic | string,
): Node<MessageBusTopicPage<T>>
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | MessageBus<TTopic> | bus value used by the helper. |
topic | TTopic | string | topic value used by the helper. |
Returns
The from topic result.
Example
import { fromTopic } from "@graphrefly/ts/messaging";
Source
packages/ts/src/messaging/index.ts