Interface: ICommand<S>
Type parameters
Name | Type |
---|---|
S | extends State = State |
Implemented by
Methods
execute
▸ execute(state
, room
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | S |
room | Room <S , Record <string , unknown >> |
Returns
Promise
<void
>
undo
▸ undo(state
, room
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | S |
room | Room <S , Record <string , unknown >> |
Returns
Promise
<void
>