(store: RawStore)
| 10 | type RawStore = ReturnType<typeof makeUserStore>; |
| 11 | |
| 12 | const makeService = (store: RawStore) => ({ |
| 13 | use: <A>(fn: (s: RawStore) => Promise<A>) => |
| 14 | withServiceLogging( |
| 15 | "user_store", |
| 16 | () => new UserStoreError(), |
| 17 | tryPromiseService(() => fn(store)), |
| 18 | ), |
| 19 | }); |
| 20 | |
| 21 | type UserStoreServiceType = ReturnType<typeof makeService>; |
| 22 |
no test coverage detected