@grnsft/if
Version:
Impact Framework
15 lines (14 loc) • 399 B
TypeScript
import { PluginInterface } from '@grnsft/if-core/types';
/**
* Storage for maintaining plugins.
*/
export declare const pluginStorage: () => {
/**
* Gets plugin by given `name`. If it's missing then throws error.
*/
get: (name: string) => PluginInterface;
/**
* Saves given `plugin` with given `name`.
*/
set: (name: string, plugin: PluginInterface) => any;
};