Skip to content

Function: definePlugin()

definePlugin<TInputGenerics>(plugin): ChoicekitPlugin<TInputGenerics, "output">

Defined in: plugins/plugin.ts:358

Small wrapper with a single object generic paramter for creating strongly-typed plugins.

Applies defaults to missing properties.

TInputGenerics extends ChoicekitPluginInputGenerics

ChoicekitPlugin<TInputGenerics, "input">

ChoicekitPlugin<TInputGenerics, "output">