StoreChange
Defined in: store-machine.ts:57
StoreChange describes a change event in a StoreMachine. Includes the event type, parameters, previous value, and next value.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Description |
|---|---|
T | Value type |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
type | string | The event type string |
params | any[] | Parameters passed to the event |
from | T | Previous value |
to | T | Next value Usage: { type: "increment", params: [2], from: 1, to: 3 } |