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

    Type Alias Version<T>

    Version: DeepReadonly<
        { [K in keyof T as T[K] extends Function ? never : K]: T[K] },
    >

    State version.

    The data properties of a state, excluding transition methods and observers, read-only at any depth: snapshots are frozen when handed out, and a holder is refused a write by the compiler rather than by an assignment that throws at run time.

    Type Parameters

    • T extends State<T>

      The state type