ICommand

An interface used to define Commands.

Extends: IExecutable

Description

The ICommand interface is used to define Commands. Each command wraps a method or function and allows to call them in a uniform and safe manner.

Instance methods

getName

Gets the command name.

getName(): string

  • returns: string - the command name.

validate

Validates command arguments before execution using defined schema.

validate(args: Parameters): ValidationResult[]

See also