Injecting Context Dependency into Factory Effect in TypeScript

I have a factory-effect returning an object with effectful functions
const factory = Effect.gen(function*(){
  return {
    method: (): Effect.Effect<string, never, Context>
  } 
})

How to make the Context to appear as a dependency of factory effect and disappear from method?
Was this page helpful?