Files
NapCatQQ/.pnpm-store/v3/files/f8/d7659037982c5449cb06447cac218bd4db1413eb78aa329a3b39fdf1829c9b070e565c955ba201402b706414337d5079df0948c486fefd46a5031a41a47843
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

26 lines
963 B
Plaintext

import { GetPlanOptions, PlanResult, ActivationsService, BindingService, DeactivationsService, PlanResultCacheService } from '@inversifyjs/core';
interface PluginApi {
define(name: string | symbol, method: (...args: any[]) => unknown): void;
onPlan(handler: (options: GetPlanOptions, result: PlanResult) => void): void;
}
interface PluginContext {
readonly activationService: ActivationsService;
readonly bindingService: BindingService;
readonly deactivationService: DeactivationsService;
readonly planResultCacheService: PlanResultCacheService;
}
declare const isPlugin: unique symbol;
declare abstract class Plugin<TContainer> {
readonly [isPlugin]: true;
protected readonly _container: TContainer;
protected readonly _context: PluginContext;
constructor(container: TContainer, context: PluginContext);
abstract load(api: PluginApi): void;
}
export { Plugin, isPlugin };
export type { PluginApi, PluginContext };