Effect CommunityEC
Effect Community3w ago
40 replies
fstodulski

Effect Error Inference Limitations

Why Effect does not infer all possible Errors?
export class CustomersQuery extends Context.Tag("app/CustomersQuery")<
  CustomersQuery,
  {
    readonly createCustomer: (
      input: CreateCustomerInputSchema
    ) => Effect.Effect<
      {
        id: string;
      },
      CreateCustomerError | CustomerAlreadyExistsError,
      never
    >;
  }
>() {}

Layer
Was this page helpful?