(id: T[IdKey])
| 44 | repo: Repository<T, Encoded, Evt, ItemType, IdKey, RSchema, RPublish, RProvided> |
| 45 | ) => { |
| 46 | const get = (id: T[IdKey]) => |
| 47 | repo.find(id).pipe( |
| 48 | Effect.flatMap(Option.match({ |
| 49 | onNone: () => Effect.fail(new NotFoundError<ItemType>({ type: repo.itemType, id })), |
| 50 | onSome: Effect.succeed |
| 51 | })) |
| 52 | ) |
| 53 | function saveManyWithPure_< |
| 54 | R, |
| 55 | A, |
no test coverage detected