function / @typed/fx

RefSubject.filteredFromService

Defers retrieval of a Filtered value from Effect Context while preserving Filtered behavior.

Package version
2.0.0-beta.13
Category
Services
Since
1.18.0
Member of
RefSubject

Import

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

Access RefSubject.filteredFromService through the imported RefSubject 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

export declare function filteredFromService<R, A, E, R2>(effect: Effect.Effect<Filtered<A, E, R2>, never, R>): Filtered<A, E, R | R2>;

Why

Lets a service-provided Filtered participate directly in Effect reads and Fx observation without manually flat-mapping the service tag at every use.

Ownership and lifetime

The filtered from service view retains no independent value. Its Effect read fails with NoSuchElement while absent; the observing Scope owns and finalizes its Fx subscription.

Other public imports

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

Source