Properties
Readonly help
help: () => 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
-
Optional onFailureAny: () => any
Returns Promise<Result>
Object that runs different commands depending on the given key.