Interface ICommandHook<STATE, CONTEXT>
Type Parameters
- STATE extends any
- CONTEXT extends any = void
Methods
Optional
beforeExecute
- beforeExecute(command, args): boolean | void | Promise<boolean | void>
Returns boolean | void | Promise<boolean | void>
Optional
onError
- onError(command, error, args): void
Returns void
Optional
onExecute
- onExecute(command, args): void
Returns void
A hook that can be passed to a command execute function.