Package: effect
Module: Cause
Extracts the error type E from a Cause<E>.
Example (Extracting the error type)
import type { Cause } from "effect"
// string
type E = Cause.Cause.Error<Cause.Cause<string>>
Signature
type Error<T> = T extends Cause<infer E> ? E : never
Since v4.0.0