UNPKG

559 BTypeScriptView Raw
1import { PubSubMessage } from "./function";
2import { CommandHandler, EventHandler } from "./handler";
3/**
4 * Register a command handler with a certain name
5 */
6export declare function registerCommand(name: string, loader: () => Promise<CommandHandler>): void;
7/**
8 * Register a event handler with a certain name
9 */
10export declare function registerEvent(name: string, loader: () => Promise<EventHandler>): void;
11export declare const bundle: (pubSubEvent: PubSubMessage, context: {
12 eventId: string;
13}) => Promise<void>;
14//# sourceMappingURL=bundle.d.ts.map
\No newline at end of file