Search
Preparing search index...
The search index is not available
xstate
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Model
Interface Model<TContext, TEvent, TModelCreators>
Type parameters
TContext
TEvent
:
EventObject
TModelCreators
Hierarchy
Model
Index
Properties
assign
events
initial
Context
reset
Properties
assign
assign
:
<TEventType>
(
assigner
:
Assigner
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
|
PropertyAssigner
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
, eventType
?:
TEventType
)
=>
AssignAction
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
Type declaration
<TEventType>
(
assigner
:
Assigner
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
|
PropertyAssigner
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
, eventType
?:
TEventType
)
:
AssignAction
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
Type parameters
TEventType
:
TEvent
[
"type"
]
Parameters
assigner:
Assigner
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
|
PropertyAssigner
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
Optional
eventType:
TEventType
Returns
AssignAction
<
TContext
,
ExtractEvent
<
TEvent
,
TEventType
>
>
events
events
:
Prop
<
TModelCreators
,
"events"
>
initial
Context
initial
Context
:
TContext
reset
reset
:
(
)
=>
AssignAction
<
TContext
,
any
>
Type declaration
(
)
:
AssignAction
<
TContext
,
any
>
Returns
AssignAction
<
TContext
,
any
>
Globals
Model
assign
events
initial
Context
reset
Generated using
TypeDoc