type-alias / @typed/fx/RefSubject

Success

Describes the success type.

Package version
2.0.0-beta.13
Category
Type utilities
Since
1.18.0

Import

import type { Success } from "@typed/fx/RefSubject";

Signatures

export type Success<T> = T extends RefSubject<infer A, infer _E, infer _R> ? A : T extends Computed<infer A, infer _E, infer _R> ? A : T extends Filtered<infer A, infer _E, infer _R> ? A : never;

Why

Extracts the current/read value type from a RefSubject, Computed, or Filtered value.

Ownership and lifetime

Success is a contract and performs no acquisition. Implementations retain the errors, services, interruption, and Scope requirements expressed by its members.

Other public imports

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

Source