@angstone/monostone
Version:
monolitic event-sourced framework
16 lines (15 loc) • 596 B
TypeScript
/// <reference types="node" />
import { EventEmitter } from "events";
import { ICommandLoaded } from "../interfaces";
export declare function execute(command: ICommandLoaded, request: any, eventReduced$: EventEmitter): Promise<any>;
export declare function createCommand(commandRecipe: {
featureName: string;
commandName: string;
featurePath: string;
}): ICommandLoaded;
export declare function createCommands(commandsRecipe: {
featureName: string;
commandNames: string[];
featurePath: string;
}): ICommandLoaded[];
export declare function sanitizeRequest(req: any): any;