Search
Preparing search index...
The search index is not available
xstate
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Actor
Interface Actor<TContext, TEvent>
Type parameters
TContext
TEvent
:
EventObject
Hierarchy
Subscribable
<
TContext
>
Actor
Implemented by
Interpreter
Index
Properties
deferred
id
meta
send
state
stop
toJSON
Methods
subscribe
Properties
Optional
deferred
deferred
:
undefined
|
false
|
true
id
id
:
string
Optional
meta
meta
:
InvokeDefinition
<
TContext
,
TEvent
>
send
send
:
(
event
:
TEvent
)
=>
any
Type declaration
(
event
:
TEvent
)
:
any
Parameters
event:
TEvent
Returns
any
Optional
state
state
:
any
Optional
stop
stop
:
undefined
|
(
(
)
=>
any
|
undefined
)
toJSON
toJSON
:
(
)
=>
{
id
:
string
}
Type declaration
(
)
:
{
id
:
string
}
Returns
{
id
:
string
}
id
:
string
Methods
subscribe
subscribe
(
observer
:
Observer
<
TContext
>
)
:
Subscription
subscribe
(
next
:
(
value
:
TContext
)
=>
void
, error
?:
undefined
|
(
(
error
:
any
)
=>
void
)
, complete
?:
undefined
|
(
(
)
=>
void
)
)
:
Subscription
Parameters
observer:
Observer
<
TContext
>
Returns
Subscription
Parameters
next:
(
value
:
TContext
)
=>
void
(
value
:
TContext
)
:
void
Parameters
value:
TContext
Returns
void
Optional
error:
undefined
|
(
(
error
:
any
)
=>
void
)
Optional
complete:
undefined
|
(
(
)
=>
void
)
Returns
Subscription
Globals
Actor
deferred
id
meta
send
state
stop
toJSON
subscribe
Generated using
TypeDoc