gunshi / default / CommandContextExtension
Interface: CommandContextExtension<E>
Command context extension
Since
v0.27.0
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
E extends GunshiParams["extensions"] | DefaultGunshiParams["extensions"] | A type extending GunshiParams.extensions to specify the shape of the extension. |
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
factory | readonly | (ctx, cmd) => Awaitable<E> | Plugin extension factory |
key | readonly | symbol | Plugin identifier |
onFactory? | readonly | (ctx, cmd) => Awaitable<void> | Plugin extension factory after hook |
