yuxuannnn_utils
Version:
13 lines (12 loc) • 412 B
TypeScript
export declare class DOMEventBus {
#private;
/**
*
* @param dom
* @param originEventType 注册的原生事件
* @param eventType 内部事件队列对应的key
*/
addEventListener(dom: any, originEventType: string, eventType: string): void;
addEvent(eventType: string, handler: Function): void;
removeEvent(eventType: string, handler: Function): void;
}