MCPcopy Create free account
hub / github.com/effect-app/libs / SomethingRepo

Class SomethingRepo

packages/infra/test/controller.test.ts:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263export 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
276export class SomethingService2 extends Context.Service<SomethingService2>()(
277 "SomethingService2",

Callers

nothing calls this directly

Calls 3

logMethod · 0.65
pipeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…