Options
All
  • Public
  • Public/Protected
  • All
Menu

Object that runs different commands depending on the given key.

Hierarchy

  • Router

Index

Properties

Properties

Readonly help

help: () => void

Type declaration

    • (): void
    • Returns void

Readonly run

run: (key: string, onEvent?: (command: Command, event: Event) => any, onSuccessAll?: () => any, onFailureAny?: () => any) => Promise<Result>

Type declaration

    • (key: string, onEvent?: (command: Command, event: Event) => any, onSuccessAll?: () => any, onFailureAny?: () => any): Promise<Result>
    • Parameters

      • key: string
      • Optional onEvent: (command: Command, event: Event) => any
      • Optional onSuccessAll: () => any
          • (): any
          • Returns any

      • Optional onFailureAny: () => any
          • (): any
          • Returns any

      Returns Promise<Result>

Legend

  • Property

Generated using TypeDoc