interface Action {
    condition: (() => boolean);
    key: TakeoverAction;
    perform: (() => Promise<boolean>);
}

Properties

Properties

condition: (() => boolean)

Determines if this action can be performed during a takeover.

Key by which the SessionStorage can reference this action.

perform: (() => Promise<boolean>)

Performs the action and returns true if it has something else to do or false if this action is finished executing.