UNPKG
@flowlab/all
Version:
latest (0.0.2)
0.0.2
0.0.1
A cool library focusing on handling various flows
github.com/countstarss/flowlab
countstarss/flowlab
@flowlab/all
/
packages
/
event
/
src
/
api
/
listBoundEvents.ts
9 lines
(8 loc)
•
281 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{ getCurrentEventBus }
from
'../internal/context'
;
/** * 列出当前绑定的所有事件名(仅限内存实现) */
export
function
listBoundEvents
(
):
string
[] {
const
bus
:
any
=
getCurrentEventBus
();
return
bus.
handlers
?
Array
.
from
(bus.
handlers
.
keys
()) : []; }