Skip to content

API Reference


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 ​

PropertyModifierTypeDefined in
fromreadonlyAnalyzerStatecontract/types.ts:342
toreadonlyAnalyzerStatecontract/types.ts:343
reasonreadonlyStateChangeReasoncontract/types.ts:344