class SomeService extends Effect.Service<SomeService>()(
"SomeService",
{
// You can now pass a function to the `effect` and `scoped` constructors
effect: Effect.fn(function* <T>(input: T) {
return {
get: Effect.succeed(input)
} as const
})
}
) {}
class SomeService extends Effect.Service<SomeService>()(
"SomeService",
{
// You can now pass a function to the `effect` and `scoped` constructors
effect: Effect.fn(function* <T>(input: T) {
return {
get: Effect.succeed(input)
} as const
})
}
) {}