Is there any way that I can yield a service into an effect but using a typed helper?
Say i have a Tagged Class
IDBObjectStoreService
IDBObjectStoreService
Instead of doing this:
const program = Effect.gen(function*() { const service = yield* IDBObjectStoreService // use service methods with explicit type const contact = yield* service.get<Contact>(1)})
const program = Effect.gen(function*() { const service = yield* IDBObjectStoreService // use service methods with explicit type const contact = yield* service.get<Contact>(1)})
I want to do something like this:
const program = Effect.gen(function*() { const service = yield* IDBObjectStoreService.Typed<Contact>() // service method types implied const contact = yield* service.get(1)})
const program = Effect.gen(function*() { const service = yield* IDBObjectStoreService.Typed<Contact>() // service method types implied const contact = yield* service.get(1)})