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