frontend
Preparing search index...
utils/replayBuilder
HumanActionStateConfig
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
build
State
final
State
init
Context
reverse
Action
Properties
actions
actions
:
TAction
[]
build
State
buildState
:
(
finalState
:
TResponse
,
ctx
:
TCtx
)
=>
TResponse
final
State
finalState
:
TResponse
init
Context
initContext
:
(
finalState
:
TResponse
)
=>
TCtx
reverse
Action
reverseAction
:
(
ctx
:
TCtx
,
action
:
TAction
)
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
actions
build
State
final
State
init
Context
reverse
Action
frontend
Loading...
Configuration for building the pre-CPU-action state after a human action.