MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / forEachTodoItem

Function forEachTodoItem

examples/todo-app/src/cli.ts:191–192  ·  view source on GitHub ↗
(todos: Readonly<ReadonlyArray<{ readonly todoId: TodoId }>>)

Source from the content-addressed store, hash-verified

189 pipe(todoId, loadTodoProjection, Effect.flatMap(processTodoProjection(todoId)));
190
191const forEachTodoItem = (todos: Readonly<ReadonlyArray<{ readonly todoId: TodoId }>>) =>
192 Effect.forEach(todos, (item) => loadAndFormatTodo(item.todoId));
193
194const formatTodoList = (todos: Readonly<ReadonlyArray<{ readonly todoId: TodoId }>>) =>
195 pipe(

Callers 1

formatTodoListFunction · 0.85

Calls 1

loadAndFormatTodoFunction · 0.85

Tested by

no test coverage detected