function / @typed/fx/Versioned

of

Creates a Versioned value from a constant.

Package version
2.0.0-beta.13
Category
Constructors
Since
1.0.0

Import

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

Signatures

export declare function of<A>(value: A): Versioned<never, never, A, never, never, A, never, never>;

Why

Creates constant versioned state for composition and testing without starting a fiber or requiring a Scope.

Ownership and lifetime

of 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