type-alias / @typed/fx/Sink

Sink.Error

Extracts the typed error carried by causes consumed by a Sink.

Package version
2.0.0-beta.13
Category
Type contracts
Since
1.0.0
Member of
Sink

Import

import { Sink } from "@typed/fx/Sink";

Access Sink.Error through the imported Sink export. Its declaration below describes the member.

Signatures

type Error<T> = T extends Sink<infer _A, infer _E, infer _R> ? _E : never;

Why

It preserves the error-channel relationship when adapting or composing sinks.

Ownership and lifetime

This conditional type is compile-time only and acquires no resources.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source