Skip to content

@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 ParameterDefault type
RS extends BaseRoomStoreStateBaseRoomStoreState

Properties ​

store ​

store: StoreApi<RS>


getState ​

getState: () => RS

Returns ​

RS


invocation ​

invocation: RoomCommandInvocation


signal? ​

optional signal?: AbortSignal

Signal supplied by the invoking surface, when it supports cancellation.