frontend
    Preparing search index...

    Interface HumanActionStateConfig<TResponse, TAction, TCtx>

    Configuration for building the pre-CPU-action state after a human action.

    interface HumanActionStateConfig<TResponse, TAction, TCtx> {
        actions: TAction[];
        buildState: (finalState: TResponse, ctx: TCtx) => TResponse;
        finalState: TResponse;
        initContext: (finalState: TResponse) => TCtx;
        reverseAction: (ctx: TCtx, action: TAction) => void;
    }

    Type Parameters

    • TResponse
    • TAction
    • TCtx
    Index

    Properties

    actions: TAction[]
    buildState: (finalState: TResponse, ctx: TCtx) => TResponse
    finalState: TResponse
    initContext: (finalState: TResponse) => TCtx
    reverseAction: (ctx: TCtx, action: TAction) => void