Skip to content

Type Alias: PluginFunction<G> ​

Plugin function type

Since ​

v0.27.0

Signature ​

ts
export type PluginFunction<G extends GunshiParams = DefaultGunshiParams> = (ctx: Readonly<PluginContext<G>>) => Awaitable<void>

Type Parameters ​

NameDescription
G extends GunshiParams = DefaultGunshiParamsA type extending GunshiParams to specify the PluginContext.

Parameters ​

NameTypeDescription
ctxReadonly<PluginContext<G>>

Returns ​

Awaitable<void>

Released under the MIT License.