| 26 | type UserStoreServiceType = ReturnType<typeof makeService>; |
| 27 | |
| 28 | export class UserStoreService extends Context.Service<UserStoreService, UserStoreServiceType>()( |
| 29 | "@executor-js/cloud/UserStoreService", |
| 30 | ) { |
| 31 | static Live = Layer.effect(this)( |
| 32 | Effect.map(DbService.asEffect(), ({ db }) => makeService(makeUserStore(db))), |
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * A FRESH `UserStoreService` layer (new layer value per call). `UserStoreService.Live` |
nothing calls this directly
no test coverage detected