| 261 | } |
| 262 | |
| 263 | export class SomethingRepo extends Context.Service<SomethingRepo>()( |
| 264 | "SomethingRepo", |
| 265 | { |
| 266 | make: Effect.gen(function*() { |
| 267 | const smth = yield* SomethingService |
| 268 | console.log({ smth }) |
| 269 | return { b: 2 } |
| 270 | }) |
| 271 | } |
| 272 | ) { |
| 273 | static Default = Layer.effect(this, this.make).pipe(Layer.provide(SomethingService.Default)) |
| 274 | } |
| 275 | |
| 276 | export class SomethingService2 extends Context.Service<SomethingService2>()( |
| 277 | "SomethingService2", |