moleculer-api
Version:
A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.
16 lines (15 loc) • 445 B
TypeScript
import { PubSub, PubSubProps } from "./pubsub";
export declare type EventPacket = {
event: string;
params: any;
groups: string[];
broadcast: boolean;
from?: string;
};
export declare type EventListener = (event: Readonly<EventPacket>) => void;
export declare class EventPubSub extends PubSub<{
[event: string]: Readonly<EventPacket>;
}> {
protected readonly props: PubSubProps;
constructor(props: PubSubProps);
}