UNPKG

custom-app-event

Version:

基于typescript, 实现一个简单的event库,快速集成发布订阅模式

6 lines (5 loc) 205 B
export declare namespace EventType { type EventObj<T> = Map<keyof T, Map<string, EventFun>>; type EventFun<VT = any> = (value?: VT) => void; type LogType = 'add' | 'remove' | 'notification'; }