@smallstack/common
Version:
common functionality for smallstack projects
15 lines (14 loc) • 464 B
TypeScript
export interface ExecutableFunction {
fn: () => Promise<void>;
identifier: string;
/** if not set, level defaults to 50 */
level?: number;
/** shall the initLevel execution stop on failure? defaults to true */
stopOnFailure?: boolean;
}
export declare class InitLevelService {
static instance(): InitLevelService;
private initLevels;
addInitLevelFn(executableFunction: ExecutableFunction): void;
execute(): Promise<void>;
}