openmixer — generated API reference
    Preparing search index...

    Interface StateStation<A, S>

    Where a mold's state lives. peek is PURE — it may not bind, seed, or persist; claim may. The mold calls peek from read/capabilities and claim only from patch/project, which is what turns the mutating-read defect class into a law a counting double can test.

    interface StateStation<A, S> {
        claim(addr: A): StateCell<S> | undefined;
        instances?(): Iterable<A>;
        peek(addr: A): StateCell<S> | undefined;
    }

    Type Parameters

    • A
    • S

    Implemented by

    Index
    • Every existing instance — snapshot replay and the watch-stream first frame.

      Returns Iterable<A>