ezyVet Javascript Helper Library Documentation
Preparing search index...
StateMachine
Interface StateMachine<T1, T2, T3>
interface
StateMachine
<
T1
extends
string
,
T2
extends
string
,
T3
extends
ActionToPayload
<
T2
>
,
>
{
getCurrentState
:
()
=>
T1
;
performAction
:
PerformAction
<
T2
,
T3
>
;
subscribe
:
(
newListener
:
(
state
:
T1
)
=>
void
)
=>
()
=>
void
;
}
Type Parameters
T1
extends
string
T2
extends
string
T3
extends
ActionToPayload
<
T2
>
Index
Properties
get
Current
State
perform
Action
subscribe
Properties
get
Current
State
getCurrentState
:
()
=>
T1
perform
Action
performAction
:
PerformAction
<
T2
,
T3
>
subscribe
subscribe
:
(
newListener
:
(
state
:
T1
)
=>
void
)
=>
()
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
get
Current
State
perform
Action
subscribe
ezyVet Javascript Helper Library Documentation
Loading...