gunshi / default / OnPluginExtension
Type Alias: OnPluginExtension()<G>
ts
type OnPluginExtension<G> = (ctx, cmd) => Awaitable<void>;Plugin extension callback, which is called when the plugin is extended with extension option.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
G extends GunshiParams | DefaultGunshiParams | A type extending GunshiParams to specify the shape of CommandContext and Command. |
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Readonly<CommandContext<G>> | The command context |
cmd | Readonly<Command<G>> | The command |
Returns
Awaitable<void>
Since
v0.27.0
