Package: effect
Module: Effect
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
Success for extracting the success value type insteadServices for extracting the required services type insteadSignature
type Error<T> = T extends Effect<infer _A, infer _E, infer _R> ? _E
: never
Since v2.0.0