@mini-umi/core
Version:
29 lines (28 loc) • 629 B
TypeScript
import { type Core } from './core';
export declare class PluginAPi {
service: any;
plugin: any;
onStart: Function;
constructor(opts: {
service: any;
plugin: any;
});
register(opts: {
key: string;
fn: any;
}): void;
registerCommand(opts: {
name: string;
fn: Function;
}): void;
registerMethod(opts: {
name: string;
fn?: Function;
}): void;
static proxyPluginAPI(opts: {
pluginAPI: PluginAPi;
service: Core;
serviceProps: string[];
staticProps: Record<string, any>;
}): PluginAPi;
}