interface MyService { foo: string, doSomeStuff(): T.Effect<....> }
//use it
pipe(....,
T.flatMap(MyService, s => s.doSomeStuff()),
....
)
interface MyService { foo: string, doSomeStuff(): T.Effect<....> }
//use it
pipe(....,
T.flatMap(MyService, s => s.doSomeStuff()),
....
)