type-alias / @typed/fx/RefSubject

Services

Describes the services type.

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

Import

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

Signatures

export type Services<T> = T extends RefSubject<infer _A, infer _E, infer R> ? R : T extends Computed<infer _A, infer _E, infer R> ? R : T extends Filtered<infer _A, infer _E, infer R> ? R : never;

Why

Extracts the service requirement channel from a RefSubject, Computed, or Filtered value.

Ownership and lifetime

Services 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