UNPKG

event-driven

Version:

makes building event-driven-architecture easy

10 lines (9 loc) 351 B
import { Event } from './backend/models'; import { EventConfig } from './index'; export interface PublisherInput { config: EventConfig; } export declare const Publisher: <T extends Event<string>>({ config, subject }: { config: EventConfig; subject: T["subject"]; }) => (data: T["data"], uniqueId?: string | undefined) => Promise<unknown>;