Skip to content

@sqlrooms/room-store / invokeCommandFromStore

Function: invokeCommandFromStore() ​

invokeCommandFromStore<RS>(store, commandId, input?, invocation?): Promise<RoomCommandResult<unknown>>

Type Parameters ​

Type Parameter
RS extends BaseRoomStoreState

Parameters ​

ParameterType
storeStoreApi<RS>
commandIdstring
input?unknown
invocation?RoomCommandInvocationOptions

Returns ​

Promise<RoomCommandResult<unknown>>