mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-09 17:23:11 +00:00
* rename all PubSub patterns * feat: forbid identifiers with camelcase pubSub (#1709) --------- Co-authored-by: Arseniy Klempner <adklempner@gmail.com>
14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
import type { IDecodedMessage } from "./message.js";
|
|
|
|
export interface IAsyncIterator<T extends IDecodedMessage> {
|
|
iterator: AsyncIterator<T>;
|
|
stop: Unsubscribe;
|
|
}
|
|
|
|
export type Unsubscribe = () => void | Promise<void>;
|
|
|
|
export type PubsubTopic = string;
|
|
export type ContentTopic = string;
|
|
|
|
export type PeerIdStr = string;
|