effect-io-ai

Package: effect
Module: Effect

Effect.Error

Extracts the error type from an Effect.

When to use

Use to derive the error type from an existing Effect type when declaring helper types, wrappers, or APIs that preserve the effect’s failure channel.

Details

Non-Effect inputs resolve to never.

See

Signature

type Error<T> = T extends Effect<infer _A, infer _E, infer _R> ? _E
  : never

Source

Since v2.0.0