UNPKG

threads-message-broker

Version:
13 lines (12 loc) 492 B
import { IThreadsMessageBrokerSubscriber } from "../interfaces"; export declare class ThreadsMessageBrokerLocalSubscriber implements IThreadsMessageBrokerSubscriber { private readonly _id; private readonly _event; private readonly _fn; constructor(_id: string, _event: string, _fn: Function); get id(): string; get event(): string; get worker(): string; get type(): "local" | "thread"; emit(type: "trigger" | "publish", data: unknown): void; }