Interface ICommand<STATE, CONTEXT>
Type Parameters
- STATE extends any = any
- CONTEXT extends any = void
Methods
description
- description(context?): string
Parameters
Optional
context: DynamicContext<CONTEXT>
Returns string
disabled
- disabled(): boolean
Returns boolean
execute
- execute(args?, hook?): Promise<boolean>
Returns Promise<boolean>
icon
- icon(context?): ReactNode
Parameters
Optional
context: DynamicContext<CONTEXT>
Returns ReactNode
key
- key(): string
Returns string
label
- label(scope?, context?): string
Parameters
Optional
scope: stringOptional
context: DynamicContext<CONTEXT>
Returns string
tags
- tags(context?): string[]
Parameters
Optional
context: DynamicContext<CONTEXT>
Returns string[]
This is call when any command properties are changed but not when the callback is changed