feat: update aggregate implementation

This commit is contained in:
2025-08-11 13:34:28 +02:00
parent 9dddc4e79f
commit cc8c558db6
37 changed files with 361 additions and 511 deletions

View File

@@ -1,7 +1,7 @@
import { makeReducer } from "../../libraries/reducer.ts";
import { EventStoreFactory } from "./events.ts";
import { Events } from "./events.ts";
export const userPostReducer = makeReducer<EventStoreFactory, UserPostState>(
export const userPostReducer = makeReducer<Events, UserPostState>(
(state, event) => {
switch (event.type) {
case "post:created": {