Interface: ChoicekitPluginInputGenerics
Interface: ChoicekitPluginInputGenerics
Section titled “Interface: ChoicekitPluginInputGenerics”Defined in: plugins/plugin.ts:55
Properties
Section titled “Properties”
readonlyoptionalapi?:GenericObject
Defined in: plugins/plugin.ts:80
All the public props and functionality the plugin will attach the given namespace on the engine
config?
Section titled “config?”
readonlyoptionalconfig?:GenericObject
Defined in: plugins/plugin.ts:65
Optional configuration exposed to users when your plugin should behave differently under situations
dependencies?
Section titled “dependencies?”
readonlyoptionaldependencies?:ChoicekitPlugins
Defined in: plugins/plugin.ts:89
Optional external plugins this plugin needs to be mounted beforehand.
engine?
Section titled “engine?”
readonlyoptionalengine?:ChoicekitEngine<ChoicekitEngineGenerics>
Defined in: plugins/plugin.ts:77
Optional engine structure that this plugin supports.
You will likely not have to modify this.
readonlyid: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
overrideBehaviour?
Section titled “overrideBehaviour?”
readonlyoptionaloverrideBehaviour?:ChoicekitPluginBehaviourOnOverride
Defined in: plugins/plugin.ts:86
How the engine will resolve “conflicts” when multiple plugins try to mount onto the same namespace
Default
Section titled “Default”"err"serializedState?
Section titled “serializedState?”
readonlyoptionalserializedState?:GenericSerializableObject
Defined in: plugins/plugin.ts:92
Optional data shape if you need to persist some plugin state.
state?
Section titled “state?”
readonlyoptionalstate?: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