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