GraphReFlyTS

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

ParameterTypeDescription
busMessageBus<TTopic>bus value used by the helper.
topicTTopic | stringtopic value used by the helper.

Returns

The from topic result.

Example

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

Source

packages/ts/src/messaging/index.ts