GitHub
Preparing search index...
The search index is not available
ts-utils - v5.0.1-beta.1
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
mxssfd/core -
v5.0.1-
beta.1
str
Repeat
number2
Chinese
chinese2
Number
format
Date
mxssfd/dom -
v5.0.1-
beta.1
mxssfd/bom -
v5.0.1-
beta.1
copy2
Clipboard
mxssfd/types -
v5.0.1-
beta.1
mxssfd/random-
picker -
v5.0.1-
beta.1
@mxssfd/random-picker
Event
Bus
instance?
Ins
constructor
events
get
Callback
List
on
once
times
emit
off
off
All
ts-utils - v5.0.1-beta.1
mxssfd/core
EventBus
Class EventBus
Hierarchy
EventBus
Index
Properties
instance?
events
Accessors
Ins
Constructors
constructor
Methods
get
Callback
List
on
once
times
emit
off
off
All
Properties
Static
Private
Optional
instance
instance
?:
EventBus
Private
events
events
:
{
[key:
string
]
:
Callback
[]
;
}
= {}
Type declaration
[
key:
string
]:
Callback
[]
Accessors
Static
Ins
get
Ins
(
)
:
EventBus
Returns
EventBus
Constructors
constructor
new
Event
Bus
(
)
:
EventBus
Returns
EventBus
Methods
get
Callback
List
get
Callback
List
(
eventName
:
string
)
:
Callback
[]
Parameters
eventName:
string
Returns
Callback
[]
on
on
(
eventName
:
string
, callback
:
Callback
)
:
void
Parameters
eventName:
string
callback:
Callback
Returns
void
once
once
(
eventName
:
string
, callback
:
Callback
)
:
void
Parameters
eventName:
string
callback:
Callback
Returns
void
times
times
(
times
:
number
, eventName
:
string
, callback
:
Callback
)
:
void
Parameters
times:
number
eventName:
string
callback:
Callback
Returns
void
emit
emit
(
eventName
:
string
,
...
params
:
any
[]
)
:
void
Parameters
eventName:
string
Rest
...
params:
any
[]
Returns
void
off
off
(
eventName
:
string
, callback
:
Callback
)
:
void
Parameters
eventName:
string
callback:
Callback
Returns
void
off
All
off
All
(
)
:
void
Returns
void