refactoring

This commit is contained in:
2025-03-04 23:21:06 +01:00
parent f3ca94c97e
commit 06443d7efa
31 changed files with 140 additions and 185 deletions

View File

@@ -19,7 +19,7 @@ interface EventStream<E : Event<ID>, ID : AggregateId> {
fun <R : E> readLastOf(
aggregateId: ID,
eventType: KClass<out R>,
): E?
): R?
/** Reads all events associated with a given aggregate ID */
fun readAll(aggregateId: ID): List<E>