@metreeca/core - v0.9.17
    Preparing search index...

    Interface State

    Versioned data.

    An immutable object combining:

    • Version Data - Data properties describing the current state
    • Transition Methods - Methods with signature like transition(...inputs): this that take inputs and generate a new immutable state with updated version data.

    Immutability

    • States are immutable; all changes go through transition methods
    • Transition methods return new immutable States

    Transitions

    • Transition methods can be destructured and called independently (e.g., const { increment } = state; increment();)

    Indexable

    • [member: string]: unknown