@mudssky/jsutils
Preparing search index...
MachineConfig
Interface MachineConfig<TValue, TContext, TEvent>
状态机配置对象。
interface
MachineConfig
<
TValue
extends
string
,
TContext
,
TEvent
extends
{
type
:
string
}
,
>
{
context
:
TContext
;
initial
:
TValue
;
states
:
Record
<
TValue
,
MachineStateConfig
<
TValue
,
TContext
,
TEvent
>
>
;
}
Type Parameters
TValue
extends
string
状态值字面量联合类型
TContext
上下文对象类型
TEvent
extends
{
type
:
string
}
事件联合类型
Index
Properties
context
initial
states
Properties
context
context
:
TContext
initial
initial
:
TValue
states
states
:
Record
<
TValue
,
MachineStateConfig
<
TValue
,
TContext
,
TEvent
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
context
initial
states
@mudssky/jsutils
Loading...
状态机配置对象。