Skip to content

@sqlrooms/app-runtime / createHtmlAppRevisionCommands

Function: createHtmlAppRevisionCommands() ​

createHtmlAppRevisionCommands<TRoomState>(options): RoomCommand<TRoomState>[]

Create room commands for writing, renaming, restoring, undoing, and redoing HTML app revisions.

Type Parameters ​

Type Parameter
TRoomState extends BaseRoomStoreState

Parameters ​

ParameterType
optionsCreateHtmlAppRevisionCommandsOptions<TRoomState>

Returns ​

RoomCommand<TRoomState>[]