Skip to main content

Interface: ICommand<S>

Type parameters

NameType
Sextends State = State

Implemented by

Methods

execute

execute(state, room): Promise<void>

Parameters

NameType
stateS
roomRoom<S, Record<string, unknown>>

Returns

Promise<void>


undo

undo(state, room): Promise<void>

Parameters

NameType
stateS
roomRoom<S, Record<string, unknown>>

Returns

Promise<void>