(todoId: TodoId, eventNumber: number, title: string)
| 68 | |
| 69 | const commitAndReturnId = |
| 70 | (todoId: TodoId, eventNumber: number, title: string) => |
| 71 | (events: Readonly<ReadonlyArray<TodoEvent>>) => |
| 72 | pipe( |
| 73 | commitAndPublish(todoId, eventNumber, events, `✓ Created TODO: ${title} (${todoId})`), |
| 74 | Effect.as(todoId) |
| 75 | ); |
| 76 | |
| 77 | const executeCreateTodo = (title: string) => TodoAggregateRoot.commands.createTodo(title)(); |
| 78 |
no test coverage detected