Interface: PluginWithExtension<E>
Plugin return type with extension, which includes the plugin ID, name, dependencies, and extension.
This type is used to define a plugin at plugin function.
Extends
Plugin<E>
Signature
ts
export interface PluginWithExtension<
E extends GunshiParams['extensions'] = DefaultGunshiParams['extensions']
> extends Plugin<E>Type Parameters
| Name | Description |
|---|---|
E extends GunshiParams['extensions'] = DefaultGunshiParams['extensions'] | A type extending GunshiParams to specify the shape of CommandContext's extensions. |
Properties
| Name | Type | Description |
|---|---|---|
dependencies (optional) | (PluginDependency | string)[] | Plugin dependencies |
extension | CommandContextExtension<E> | Plugin extension |
id | string | Plugin identifier |
name | string | Plugin name |
