Error<P>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.
Source effect/Pull.ts:772 lines
export type type Error<P> = P extends Effect<
infer _A,
infer _E,
infer _R
>
? _E extends Cause.Done<infer _L>
? never
: _E
: never
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.
Error<function (type parameter) P in type Error<P>P> = function (type parameter) P in type Error<P>P extends import EffectEffect<infer function (type parameter) _A_A, infer function (type parameter) _E_E, infer function (type parameter) _R_R> ? function (type parameter) _E_E extends import CauseCause.type Cause.Done = /*unresolved*/ anyDone<infer function (type parameter) _L_L> ? never : function (type parameter) _E_E
: never