type-alias / @typed/fx

Sink.Sink.Success

Extracts the successful input type consumed by a Sink.

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

Import

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

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

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

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

Why

Library code can derive a consumer’s input without repeating its generic arguments.

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