TOC Toolkit API - v0.1.0
    Preparing search index...

    Interface RewriteRule<State, Context, Detail, Proof>

    Lazily proposes states without mutating its input or earlier proposals.

    interface RewriteRule<State, Context, Detail, Proof> {
        id: string;
        proof: Proof;
        candidates(
            state: State,
            context: Context,
        ): Iterable<RewriteProposal<State, Detail>>;
    }

    Type Parameters

    • State
    • Context
    • Detail
    • Proof
    Index
    id: string
    proof: Proof