Import
import { getError } from "@typed/async-data";Signatures
export declare function getError<A, E>(data: AsyncData<A, E>): Option.Option<E>;Why
This convenience accessor intentionally excludes defects and interruption; use getCause when those distinctions matter.
Ownership and lifetime
This pure lookup acquires no resources and does not retain the state.
Examples
import { failure, getError } from "@typed/async-data"
import { Cause } from "effect"
const error = getError(failure(Cause.fail("offline")))