Skip to content

Interface: ChoicekitPluginInputGenerics

Defined in: plugins/plugin.ts:55

readonly optional api?: GenericObject

Defined in: plugins/plugin.ts:80

All the public props and functionality the plugin will attach the given namespace on the engine


readonly optional config?: GenericObject

Defined in: plugins/plugin.ts:65

Optional configuration exposed to users when your plugin should behave differently under situations


readonly optional dependencies?: ChoicekitPlugins

Defined in: plugins/plugin.ts:89

Optional external plugins this plugin needs to be mounted beforehand.


readonly optional engine?: ChoicekitEngine<ChoicekitEngineGenerics>

Defined in: plugins/plugin.ts:77

Optional engine structure that this plugin supports.

You will likely not have to modify this.


readonly id: string

Defined in: plugins/plugin.ts:62

Unique id / name / namespace.

Only one plugin can be mounted at a time on the engine with the same id.

NOTE: CHANGING THIS WILL BREAK PLUGIN SAVES


readonly optional overrideBehaviour?: ChoicekitPluginBehaviourOnOverride

Defined in: plugins/plugin.ts:86

How the engine will resolve “conflicts” when multiple plugins try to mount onto the same namespace

"err"

readonly optional serializedState?: GenericSerializableObject

Defined in: plugins/plugin.ts:92

Optional data shape if you need to persist some plugin state.


readonly optional state?: GenericObject

Defined in: plugins/plugin.ts:71

Optional internal state isolated to a single engine instance.

Ideal since you’d otherwise have to fiddle with weakmaps for partitioned state