UNPKG

evtstore

Version:

Event Sourcing with Node.JS

3 lines (2 loc) 309 B
import { Aggregate, BaseAggregate, CmdBody, Command, CommandHandler, ProvidedAggregate, Event } from './types'; export declare function createCommands<E extends Event, A extends Aggregate, C extends Command>(provided: ProvidedAggregate<E, A>, handler: CommandHandler<E, A, C>): CmdBody<C, A & BaseAggregate>;