Skip to content

@sqlrooms/room-store / CreateCommandSliceProps

Type Alias: CreateCommandSliceProps<RS> ​

CreateCommandSliceProps<RS> = object

Type Parameters ​

Type ParameterDefault type
RS extends BaseRoomStoreStateBaseRoomStoreState

Properties ​

middleware? ​

optional middleware?: RoomCommandMiddleware<RS>[]


onCommandInvokeStart? ​

optional onCommandInvokeStart?: (event) => void

Parameters ​

ParameterType
eventRoomCommandInvokeStartEvent<RS>

Returns ​

void


onCommandInvokeSuccess? ​

optional onCommandInvokeSuccess?: (event) => void

Parameters ​

ParameterType
eventRoomCommandInvokeSuccessEvent<RS>

Returns ​

void


onCommandInvokeFailure? ​

optional onCommandInvokeFailure?: (event) => void

Parameters ​

ParameterType
eventRoomCommandInvokeFailureEvent<RS>

Returns ​

void


onCommandInvokeError? ​

optional onCommandInvokeError?: (event) => void

Parameters ​

ParameterType
eventRoomCommandInvokeErrorEvent<RS>

Returns ​

void