Interface ICommand<Returns, Arguments>

interface ICommand<Returns, Arguments> {
    canExecute(...args: Arguments): boolean;
    execute(...args: Arguments): Returns;
}

Type Parameters

  • Returns = any
  • Arguments extends any[] = []

Methods