UNPKG

@x5e/gink

Version:

an eventually consistent database

10 lines (9 loc) 391 B
import { Store } from "../implementation/Store"; export type StoreMaker = () => Promise<Store>; /** * * @param storeMaker must return a fresh (empty) store on each invocation * @param implName name of this implementation * @param replacer thing to check when using persistence */ export declare function testStore(implName: string, storeMaker: StoreMaker, replacer?: StoreMaker): void;