react-application-core
Version:
A react-based application core for the business applications.
38 lines (37 loc) • 1.36 kB
TypeScript
import { AnyT } from '../definitions.interface';
import { IEventManager } from '../definition';
export declare class EventManager implements IEventManager {
/**
* @stable [23.02.2019]
* @param {EventTarget} el
* @param {string} type
* @param {(...args) => AnyT} callback
* @param {boolean} capturing
* @returns {() => void}
*/
subscribe(el: EventTarget, type: string, callback: (...args: any[]) => void, capturing?: boolean): () => void;
/**
* @stable [23.02.2019]
* @param {EventTarget} el
* @param {string} type
* @param {(...args) => void} callback
* @param {boolean} capturing
*/
add(el: EventTarget, type: string, callback: (...args: any[]) => void, capturing?: boolean): void;
/**
* @stable [23.02.2019]
* @param {EventTarget} el
* @param {string} type
* @param {(...args) => void} callback
* @param {boolean} capturing
*/
remove(el: EventTarget, type: string, callback: (...args: any[]) => void, capturing?: boolean): void;
/**
* @stable [23.02.2019]
* @param {EventTarget} el
* @param {string} type
* @param {(...args) => void} callback
* @param {AnyT} model
*/
fabricate(el: EventTarget, type: string, callback: (...args: any[]) => void, model?: AnyT): void;
}