(store: RawStore)
| 15 | // public error alongside the classified driver reason — an error report is |
| 16 | // diagnosable without the trace. |
| 17 | const makeService = (store: RawStore) => ({ |
| 18 | use: <A>(op: string, fn: (s: RawStore) => Promise<A>) => |
| 19 | withServiceLogging( |
| 20 | `user_store.${op}`, |
| 21 | (failure) => userStoreErrorFromFailure(op, failure), |
| 22 | tryPromiseService(() => fn(store)), |
| 23 | ), |
| 24 | }); |
| 25 | |
| 26 | type UserStoreServiceType = ReturnType<typeof makeService>; |
| 27 |
no test coverage detected