MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / validateExportLifecycle

Function validateExportLifecycle

frontend/packages/common/src/utils/plugin.tsx:43–46  ·  view source on GitHub ↗
(exports: unknown)

Source from the content-addressed store, hash-verified

41
42/** check the lifecycle method of plugin */
43export function validateExportLifecycle(exports: unknown) {
44 const { bootstrap, mount, unmount } = exports ?? {}
45 return isFunction(bootstrap) && isFunction(mount) && isFunction(unmount)
46}
47
48export const DEFAULT_LOCAL_PLUGIN_PATH = '/plugin-frontend/'
49

Callers 1

loadModuleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected