Skip to content
PACKAGES

fromTopic()

Creates a from topic.

import { fromTopic } from "@graphrefly/ts/messaging";
function fromTopic(
bus: MessageBus<TTopic>,
topic: TTopic | string,
): Node<MessageBusTopicPage<T>>
ParameterTypeDescription
busMessageBus<TTopic>bus value used by the helper.
topicTTopic | stringtopic value used by the helper.

The from topic result.

import { fromTopic } from "@graphrefly/ts/messaging";

packages/ts/src/messaging/index.ts