KAPLAYPlugin<T>(k: KAPLAYCtx): T | (args: any)=>(k: KAPLAYCtx)=>T
A plugin for KAPLAY.
// a plugin that adds a new function to KAPLAY const myPlugin = (k) => ({ myFunc: () => { k.debug.log("hello from my plugin") } }) // use the plugin kaplay({ plugins: [ myPlugin ] }) // now you can use the new function myFunc()