API Reference / StateChange
Type Alias: StateChange
ts
type StateChange = {
from: AnalyzerState;
to: AnalyzerState;
reason: StateChangeReason;
};Defined in: contract/types.ts:341
Payload of statechange. to is the object analyzer.state holds at dispatch. A reset() while listening is a change too, from listening to listening: the epoch moved.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
from | readonly | AnalyzerState | contract/types.ts:342 |
to | readonly | AnalyzerState | contract/types.ts:343 |
reason | readonly | StateChangeReason | contract/types.ts:344 |