UNPKG
custom-app-event
Version:
latest (0.0.4)
0.0.4
基于typescript, 实现一个简单的event库,快速集成发布订阅模式
custom-app-event
/
dist
/
types.d.ts
6 lines
(5 loc)
•
205 B
TypeScript
View Raw
1
2
3
4
5
6
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'
; }