Interface that should be implemented in order to define a synchronous command

Since 1.5.0

interface Command<Model extends object, Real> {
    check(m: Readonly<Model>): boolean;
    run(m: Model, r: Real): void;
    toString(): string;
}

Type Parameters

  • Model extends object
  • Real

Hierarchy (View Summary)

Methods