13 lines
441 B
TypeScript
13 lines
441 B
TypeScript
import { EventFactory, Prettify } from "@valkyr/event-store";
|
|
|
|
import account from "./account.ts";
|
|
import code from "./code.ts";
|
|
import organization from "./organization.ts";
|
|
import strategy from "./strategy.ts";
|
|
|
|
export const events = new EventFactory([...account, ...code, ...organization, ...strategy]);
|
|
|
|
export type EventStoreFactory = typeof events;
|
|
|
|
export type EventRecord = Prettify<EventStoreFactory["$events"][number]["$record"]>;
|