Defines the command executer service interface.

interface ICommandService {
    executeCommand(id: string, ...args: any[]): any;
}

Hierarchy (View Summary)

Methods

  • Executes the command denoted by the given command ID.

    Parameters

    • id: string

      ID of the command to execute.

    • ...args: any[]

      Parameters passed to the command handler function.

    Returns any

    Returns the result of the command handler function. Returns undefined when the command doesn't exists.