State.(constructor)​
Creates a new State
instance that represents the current state of a running machine.
Signature:
constructor(config: StateConfig<TContext, TEvent>, machine: AnyStateMachine);
Parameters​
Parameter | Type | Description |
---|---|---|
config | StateConfig<TContext, TEvent> | |
machine | AnyStateMachine |