effect-io-ai

Package: effect
Module: Pull

Pull.Error

Extracts the error type from a Pull type, excluding Done errors.

When to use

Use to derive only the ordinary failure type from a Pull when declaring wrappers or APIs that handle completion separately.

See

Signature

type Error<P> = P extends Effect<infer _A, infer _E, infer _R> ? _E extends Cause.Done<infer _L> ? never : _E
  : never

Source

Since v4.0.0