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
Member of
Versioned

Import

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

Access Versioned.of 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 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