variable / @typed/fx

Versioned.provide

Provides context to a Versioned value.

Package version
2.0.0-beta.13
Category
Services
Since
1.0.0
Member of
Versioned

Import

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

Access Versioned.provide through the imported Versioned 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 const provide: <R0, E0, A, E, R, B, E2, R2, R3 = never, S = never>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>, layer: Layer.Layer<S, never, R3>) => Versioned<R3 | Exclude<R0, S>, E0, A, E, R3 | Exclude<R, S>, B, E2, R3 | Exclude<R2, S>>;

Why

Supplies one Layer to all three Versioned channels so service elimination is consistent for version reads, pushed updates, and current reads.

Ownership and lifetime

provide does not take ownership of its inputs. Its observation and current-read channels retain upstream lifetime, typed failures, services, and interruption behavior.

Other public imports

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

Source