Module / v2.0.0-beta.13

@typed/fx/Versioned

20 unique exports available through this public import path, including their members and aliases.

import * as Versioned from "@typed/fx/Versioned";

Channel transformations

  • map

    variable

    Transform a Versioned’s output value as both an Fx and Effect.

  • mapEffect

    variable

    Transform a Versioned’s output value as both an Fx and Effect using an Effect.

  • transform

    function

    Transforms a Versioned value into another Versioned value.

Constructors

  • make

    function

    Creates a Versioned value from its components.

  • of

    function

    Creates a Versioned value from a constant.

Optional channel transformations

  • filterMap

    variable

    Filter-maps a Versioned’s output as both an Fx and Effect; the Effect value becomes Option (Some when the predicate holds, None otherwise).

  • filterMapEffect

    variable

    Filter-maps a Versioned’s output as both an Fx and Effect using an Effect; the Effect value becomes Option.

Services

  • Service

    function

    Creates a Context-backed Versioned service facade and Layer constructor.

  • Versioned.Class

    interface

    Defines the class state contract.

  • Versioned.Service

    interface

    Defines the service state contract.

  • provide

    variable

    Provides context to a Versioned value.

Shared observation

  • hold

    function

    Holds the latest value of a Versioned stream.

  • multicast

    function

    Multicasts a Versioned stream.

  • replay

    function

    Replays the last bufferSize values of a Versioned stream.

State composition

  • struct

    function

    Combines multiple Versioned values into a single struct.

  • tuple

    function

    Combines multiple Versioned values into a single tuple.

State protocol

  • Versioned

    interface

    A Versioned value is a value that changes over time, and each change is associated with a version number. It combines the capabilities of an Fx (to observe changes) and an Effect (to get the current value).

Type utilities