Function: definePlugin()
Function: definePlugin()
Section titled “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.
Type Parameters
Section titled “Type Parameters”TInputGenerics
Section titled “TInputGenerics”TInputGenerics extends ChoicekitPluginInputGenerics
Parameters
Section titled “Parameters”plugin
Section titled “plugin”ChoicekitPlugin<TInputGenerics, "input">
Returns
Section titled “Returns”ChoicekitPlugin<TInputGenerics, "output">