Package: effect
Module: Pull
Extracts the leftover type from a Pull type.
When to use
Use to derive the completion leftover type from an existing Pull when
declaring reusable type aliases or helper signatures that preserve a pull’s
done value.
See
Success for extracting the pulled value type insteadError for extracting the ordinary failure type, excluding Cause.DoneServices for extracting the required services type insteadSignature
type Leftover<P> = P extends Effect<infer _A, infer _E, infer _R> ? _E extends Cause.Done<infer _L> ? _L : never
: never
Since v4.0.0