@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
18 lines (17 loc) • 619 B
TypeScript
import type { ESLShareActionType, ESLShareBaseAction } from './esl-share-action';
/**
* ESLShareActionRegistry class to store share actions
* @author Dmytro Shovchko
*/
export declare class ESLShareActionRegistry {
private actionsMap;
/** Returns action registry instance */
static get instance(): ESLShareActionRegistry;
protected constructor();
/** Registers action */
register(action: ESLShareActionType): void;
/** Checks if action is registered for passed name */
has(name: string): boolean;
/** Gets the action by name */
get(name: string): ESLShareBaseAction | null;
}