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

Function formatTodoList

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

Source from the content-addressed store, hash-verified

192 Effect.forEach(todos, (item) => loadAndFormatTodo(item.todoId));
193
194const formatTodoList = (todos: Readonly<ReadonlyArray<{ readonly todoId: TodoId }>>) =>
195 pipe(
196 Effect.void,
197 Effect.andThen(Console.log('\n📝 Your TODOs:\n')),
198 Effect.andThen(forEachTodoItem(todos)),
199 Effect.andThen(Console.log(''))
200 );
201
202const processListProjection = (projection: Readonly<Projection<TodoListProjection>>) => {
203 const list = pipe(

Callers 1

processListProjectionFunction · 0.70

Calls 1

forEachTodoItemFunction · 0.85

Tested by

no test coverage detected