CommandHandler()<T>
type CommandHandler<T>: (args) => void | Promise<void>;
A command handler, as used by yargs.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Parameters
| Parameter | Type |
|---|---|
args | StrictArgs<T> |
Returns
void | Promise<void>