PatchHandler
@rotorsoft/act-root / act/src / PatchHandler
Type Alias: PatchHandler()<TState, TEvents, TKey>
PatchHandler<
TState,TEvents,TKey> = (event,state) =>Readonly<Patch<TState>>
Defined in: libs/act/src/types/action.ts:279
Handles patching state in response to a committed event.
Type Parameters
TState
TState extends Schema
State schema.
TEvents
TEvents extends Schemas
Event schemas.
TKey
TKey extends keyof TEvents
Event name.
Parameters
event
Committed<TEvents, TKey>
state
Readonly<TState>
Returns
Readonly<Patch<TState>>