feat: add peerDependencies

This commit is contained in:
2025-07-07 13:11:16 +02:00
parent 2093dd7097
commit dd1570d52e
36 changed files with 481 additions and 274 deletions

View File

@@ -11,7 +11,9 @@ export function describe<TEventFactory extends EventFactory>(
return (getEventStore: EventStoreFn<TEventFactory>) => desc(name, () => runner(getEventStore));
}
type EventStoreFn<TEventFactory extends EventFactory> = (options?: { hooks?: EventStoreHooks<TEventFactory> }) => Promise<{
type EventStoreFn<TEventFactory extends EventFactory> = (options?: {
hooks?: EventStoreHooks<TEventFactory>;
}) => Promise<{
store: EventStore<TEventFactory, any, any>;
projector: Projector<TEventFactory>;
}>;