Interface StatefulLensSpec<S, V, C>

    interface StatefulLensSpec<S extends readonly unknown[], V, C> {
        bwd: (target: V, sources: S, complement: C) => StatefulBwd<S, C>;
        fwd: (sources: S, complement: C) => V;
        init: (sources: S) => C;
        step?: (sources: S, complement: C) => C;
    }

    Type Parameters

    • S extends readonly unknown[]
    • V
    • C
    Index

    Properties

    Properties

    bwd: (target: V, sources: S, complement: C) => StatefulBwd<S, C>
    fwd: (sources: S, complement: C) => V
    init: (sources: S) => C
    step?: (sources: S, complement: C) => C

    Advance the complement on an outside change. Optional — defaults to init (the memoryless refresh); the engine runs it only when sources actually move.