• Register a class as a command

    Returns

    callback which accepts a CommandClass and sets the command id

    Parameters

    • options: CommandOptions

      a CommandOptions object containing the id of the command

    Returns ((commandClass: CommandClass) => void)