Improving setTenant Function to Return Void
Is there a better way to do this? setTenant is expected to return void
Signature:
Signature:
Layer.effect(TenantApi, Effect.gen(KeyValueStore, function* (_) {
yield _(KeyValueStore)
return TenantApi.of({
setTenant: (tenant) => {
return Effect.all([
]).pipe(Effect.map(() => {}))
}
})
}))setTenant(
params: Tenant
): Effect.Effect<never, TenantApiError, void>;