UNPKG

701 BTypeScriptView Raw
1import "source-map-support/register";
2import { CommandHandler, EventHandler } from "./handler";
3import { CommandIncoming, EventIncoming } from "./payload";
4export interface PubSubMessage {
5 data: string;
6 attributes: any;
7}
8export declare const entryPoint: (pubSubEvent: PubSubMessage, context: {
9 eventId: string;
10}) => Promise<void>;
11export declare function processEvent(event: EventIncoming, ctx: {
12 eventId: string;
13}, loader?: (name: string) => Promise<EventHandler>): Promise<void>;
14export declare function processCommand(event: CommandIncoming, ctx: {
15 eventId: string;
16}, loader?: (name: string) => Promise<CommandHandler>): Promise<void>;
17//# sourceMappingURL=function.d.ts.map
\No newline at end of file