UNPKG

piclist

Version:

Modified PicGo core, A tool for picture uploading

27 lines (26 loc) 826 B
import { IPlugin, ILifecyclePlugins } from '../types'; export declare class LifecyclePlugins implements ILifecyclePlugins { static currentPlugin: string | null; /** * The name of the plugin */ private readonly name; /** * The list of plugins */ private readonly list; /** * The map of plugin id */ private readonly pluginIdMap; constructor(name: string); register(id: string, plugin: IPlugin): void; unregister(pluginName: string): void; getName(): string; get(id: string): IPlugin | undefined; getList(): IPlugin[]; getIdList(): string[]; } export declare const setCurrentPluginName: (name?: string | null) => void; export declare const getCurrentPluginName: () => string | null; export default LifecyclePlugins;