recipe-ts-runtime
Version:
TypeScript run-time library for the Recipe framework
13 lines (12 loc) • 532 B
TypeScript
import { Cake } from "./Cake";
import { Recipe } from "./Recipe";
import { AbstractOven } from "./AbstractOven";
export declare type Dispatcher = (payload: string) => Promise<string>;
export declare class Oven extends AbstractOven {
private readonly dispatchers;
private defaultDispatcher?;
bake(recipe: Recipe): Promise<Cake>;
addDispatcher(domain: string, dispatcher: Dispatcher): void;
setDefaultDispatcher(dispatcher?: Dispatcher): void;
protected _setDefaultDispatcher(dispatcher?: Dispatcher): void;
}