UNPKG

540 BTypeScriptView Raw
1import type { Container } from "../Container";
2import type { IContainerPlugin } from "./IContainerPlugin";
3import type { IOptions } from "../../Options/Interfaces/IOptions";
4import type { RecursivePartial } from "../../Types";
5import type { Options } from "../../Options/Classes/Options";
6export interface IPlugin {
7 readonly id: string;
8 needsPlugin(options?: RecursivePartial<IOptions>): boolean;
9 getPlugin(container: Container): IContainerPlugin;
10 loadOptions(options: Options, source?: RecursivePartial<IOptions>): void;
11}