type-alias / @typed/fx/RefSubject

Error

Describes the error type.

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

Import

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

Signatures

export type Error<T> = T extends RefSubject<infer _A, infer E, infer _R> ? E : T extends Computed<infer _A, infer E, infer _R> ? E : T extends Filtered<infer _A, infer E, infer _R> ? E : never;

Why

Extracts the declared state error channel from a RefSubject, Computed, or Filtered value.

Ownership and lifetime

Error 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