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