Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
definePlugin
Defines an interface plugin without registering it in the browser host.
Import
import { definePlugin } from "@dartwic/interface-sdk";Declaration
export function definePlugin(plugin: InterfacePluginDefinition): InterfacePluginDefinition {
if (!plugin || typeof plugin !== "object") {
throw new Error("definePlugin(...) requires a plugin definition.");
}
return plugin;
}