UNPKG

@palmares/events

Version:

This is the events framework for palmares, it's responsible for handling everything that is Pub/Sub like websockets, pub/sub like redis, and other types of asynchronous background tasks

11 lines 364 B
import type { Domain } from '@palmares/core'; export type EventHandlerType = (...args: any[]) => any; export type EventsDomainInterface = { getEvents: () => Promise<{ [eventName: string]: EventHandlerType | { handler: EventHandlerType; withResult: boolean; }; }>; } & Domain; //# sourceMappingURL=interfaces.d.ts.map