UNPKG

@getanthill/datastore

Version:

Event-Sourced Datastore

18 lines (17 loc) 920 B
import type { Ctx } from '../../typings'; import { Command } from 'commander'; export declare function buildContext(initialContext: any): Promise<any>; export declare function getHandler(ctx: Ctx, handlerType: 'start' | 'replay'): Promise<void>; export declare function load(dir: string): Promise<any>; export declare function prepare(ctx: Ctx): Promise<{ instances: Map<any, any>; entities: Map<any, any>; modelConfigs: Map<any, any>; datastores: string[]; }>; export declare function init(ctx: Ctx): Promise<any[]>; export declare function sendEvents(ctx: Ctx, events: any[], waitTimeout?: number): Promise<void>; export declare function run(ctx: Ctx, handlerType: 'start' | 'replay'): Promise<void>; export declare function assert(ctx: Ctx, handlerType: string): Promise<void>; export declare function tearDown(ctx: Ctx): Promise<void>; export declare function cli(argv?: string[]): Promise<Command>;