Preparing search index...
The search index is not available
Distributed Lab | Web-Kit
Distributed Lab | Web-Kit
@distributedlab/tools
EventEmitter
Class EventEmitter<T>
Type Parameters
T
extends
EventMap
Hierarchy
EventEmitter
Index
Constructors
constructor
Properties
handlers
Methods
clear
emit
off
on
once
Constructors
constructor
new
Event
Emitter
<
T
>
(
)
:
EventEmitter
<
T
>
Type Parameters
T
extends
EventMap
Returns
EventEmitter
<
T
>
Properties
handlers
handlers
:
EventHandlersMap
<
T
>
= {}
Methods
clear
clear
(
)
:
void
Returns
void
emit
emit
<
K
>
(
key
:
K
, data
?:
T
[
K
]
)
:
void
Type Parameters
K
extends
string
Parameters
key:
K
Optional
data:
T
[
K
]
Returns
void
off
off
<
K
>
(
key
:
K
, fn
:
EventHandler
<
T
[
K
]
>
)
:
void
Type Parameters
K
extends
string
Parameters
key:
K
fn:
EventHandler
<
T
[
K
]
>
Returns
void
on
on
<
K
>
(
key
:
K
, fn
:
EventHandler
<
T
[
K
]
>
)
:
void
Type Parameters
K
extends
string
Parameters
key:
K
fn:
EventHandler
<
T
[
K
]
>
Returns
void
once
once
<
K
>
(
key
:
K
, fn
:
EventHandler
<
T
[
K
]
>
)
:
void
Type Parameters
K
extends
string
Parameters
key:
K
fn:
EventHandler
<
T
[
K
]
>
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Distributed
Lab |
Web-
Kit
@distributedlab/fetcher
@distributedlab/jac
@distributedlab/reactivity
@distributedlab/tools
@distributedlab/w3p
Event
Emitter
constructor
handlers
clear
emit
off
on
once
Generated using
TypeDoc