Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HandleCommand<P>

Interface for class-based command handlers. These combine the parameters with the command. A fresh instance will be created for every invocation. Prefer using the parameters object to "this" in implementations of the handle method.

Type parameters

  • P

    parameters type

Hierarchy

  • HandleCommand

Index

Properties

Methods

Properties

handle

handle: OnCommand<P>

OnCommand function for this command

Methods

Optional freshParametersInstance

  • freshParametersInstance(): P
  • If this method is implemented, it returns a fresh parameters instance to use for this class. Otherwise will use the class itself as its parameters.

    Returns P

    new parameters instance

Generated using TypeDoc