Effect CommunityEC
Effect Community3y ago
4 replies
peachneo

Improving setTenant Function to Return Void

Is there a better way to do this? setTenant is expected to return void


Layer.effect(TenantApi, Effect.gen(KeyValueStore, function* (_) {
  yield _(KeyValueStore)

  return TenantApi.of({
    setTenant: (tenant) => {
      return Effect.all([
        
      ]).pipe(Effect.map(() => {}))
    }
  })
}))


Signature:
setTenant(
    params: Tenant
  ): Effect.Effect<never, TenantApiError, void>;
Was this page helpful?