MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / installPlugin

Function installPlugin

packages/ui-next/src/registry/plugin.ts:28–32  ·  view source on GitHub ↗
(plugin: PluginDefinition)

Source from the content-addressed store, hash-verified

26}
27
28export function installPlugin(plugin: PluginDefinition): () => void {
29 const api = createPluginAPI();
30 const cleanup = plugin.setup(api);
31 return () => cleanup?.();
32}

Callers 1

loadPluginsFunction · 0.90

Calls 1

createPluginAPIFunction · 0.85

Tested by

no test coverage detected