Package: effect
Module: Pull
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
Success for extracting the pulled value type insteadLeftover for extracting the completion leftover typeServices for extracting the required services type insteadExcludeDone for excluding Cause.Done from an error unionSignature
type Error<P> = P extends Effect<infer _A, infer _E, infer _R> ? _E extends Cause.Done<infer _L> ? never : _E
: never
Since v4.0.0