This is the function you aggregate will use to mutate your state. If you know redux it's like a reducer.
It represent an operation result.
Use this function to build your aggregate instances.
The current state of you aggregate
The EventResolver your aggregate will use to mutate the state.
This option will generate a snapshots every X events added.
This function will return an new aggregate instance.
This function will help you be certain that you handle all cases in switch case. If one case is not covered typescript will raise an error at compilation time.
Generated using TypeDoc