@sqlrooms/room-store / RoomCommandExecutionContext
Type Alias: RoomCommandExecutionContext<RS>
RoomCommandExecutionContext<
RS> =object
Runtime context passed to room command predicates, validation, middleware, and execution handlers. Its signal supports cooperative cancellation and is not retained in serializable invocation or audit data.
Type Parameters
| Type Parameter | Default type |
|---|---|
RS extends BaseRoomStoreState | BaseRoomStoreState |
Properties
store
store:
StoreApi<RS>
getState
getState: () =>
RS
Returns
RS
invocation
invocation:
RoomCommandInvocation
signal?
optionalsignal?:AbortSignal
Signal supplied by the invoking surface, when it supports cancellation.