evtstore
Version:
Event Sourcing with Node.JS
5 lines (4 loc) • 367 B
TypeScript
import { Event } from '../src/types';
export declare function toArray(stream: string | string[]): string[];
export declare function isPositionZero(position: any): boolean;
export declare function createEventsMapper<E extends Event>(position: any): (stream: string, aggregateId: string, version: number, event: E[]) => import("../src/types").StoreEvent<E, unknown>[];