UNPKG

@vnxjs/service

Version:
15 lines (14 loc) 472 B
import Kernel from './Kernel'; import { ICommand, IHook, IPlatform } from './utils/types'; export default class Plugin { id: string; path: string; ctx: Kernel; optsSchema: (...args: any[]) => void; constructor(opts: any); register(hook: IHook): void; registerCommand(command: ICommand): void; registerPlatform(platform: IPlatform): void; registerMethod(...args: any[]): void; addPluginOptsSchema(schema: any): void; }