Preparing search index...
The search index is not available
Deepkit
Deepkit
event
EventDispatcher
Class EventDispatcher
Hierarchy
EventDispatcher
Implements
EventDispatcherInterface
Index
Constructors
constructor
Properties
injector
instances
listener
Map
registered
Class
Types
symbol
Methods
add
build
For
dispatch
fork
get
Listeners
get
Tokens
has
Listeners
listen
register
Listener
Constructors
constructor
new
Event
Dispatcher
(
injector
?:
InjectorContext
)
:
EventDispatcher
Parameters
injector:
InjectorContext
= ...
Returns
EventDispatcher
Properties
injector
injector
:
InjectorContext
= ...
Protected
instances
instances
:
any
[]
= []
Protected
listener
Map
listener
Map
:
Map
<
EventToken
<
any
>
,
EventListenerContainerEntry
[]
>
= ...
Protected
registered
Class
Types
registered
Class
Types
:
Set
<
ClassType
<
any
>
>
= ...
Protected
symbol
symbol
:
symbol
= ...
Methods
add
add
(
eventToken
:
EventToken
<
any
>
, listener
:
EventListenerContainerEntry
)
:
EventDispatcherUnsubscribe
Parameters
eventToken:
EventToken
<
any
>
listener:
EventListenerContainerEntry
Returns
EventDispatcherUnsubscribe
Protected
build
For
build
For
(
eventToken
:
EventToken
<
any
>
)
:
undefined
|
EventDispatcherFn
Parameters
eventToken:
EventToken
<
any
>
Returns
undefined
|
EventDispatcherFn
dispatch
dispatch
<
T
>
(
eventToken
:
T
, event
?:
EventOfEventToken
<
T
>
, injector
?:
InjectorContext
)
:
Promise
<
void
>
Type Parameters
T
extends
EventToken
<
any
,
T
>
Parameters
eventToken:
T
Optional
event:
EventOfEventToken
<
T
>
Optional
injector:
InjectorContext
Returns
Promise
<
void
>
fork
fork
(
)
:
EventDispatcherInterface
Returns
EventDispatcherInterface
get
Listeners
get
Listeners
(
eventToken
:
EventToken
<
any
>
)
:
EventListenerContainerEntry
[]
Parameters
eventToken:
EventToken
<
any
>
Returns
EventListenerContainerEntry
[]
get
Tokens
get
Tokens
(
)
:
EventToken
<
any
>
[]
Returns
EventToken
<
any
>
[]
has
Listeners
has
Listeners
(
eventToken
:
EventToken
<
any
>
)
:
boolean
Parameters
eventToken:
EventToken
<
any
>
Returns
boolean
listen
listen
<
T
,
DEPS
>
(
eventToken
:
T
, callback
:
EventListenerCallback
<
T
[
"event"
]
>
, order
?:
number
)
:
EventDispatcherUnsubscribe
Type Parameters
T
extends
EventToken
<
any
,
T
>
DEPS
extends
any
[]
Parameters
eventToken:
T
callback:
EventListenerCallback
<
T
[
"event"
]
>
order:
number
= 0
Returns
EventDispatcherUnsubscribe
register
Listener
register
Listener
(
listener
:
ClassType
<
any
>
, module
:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
)
:
void
Parameters
listener:
ClassType
<
any
>
module:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Deepkit
angular-
universal
api-
console-
api
api-
console-
module
app
broker
bson
core
core-
rxjs
create-
app
crypto
event
framework
framework-
debug-
api
http
injector
logger
mongo
mysql
orm
orm-
browser-
api
orm-
integration
postgres
rpc
rpc-
tcp
skeleton
sql
sqlite
stopwatch
template
type
type-
compiler
workflow
Event
Dispatcher
constructor
injector
instances
listener
Map
registered
Class
Types
symbol
add
build
For
dispatch
fork
get
Listeners
get
Tokens
has
Listeners
listen
register
Listener
Generated using
TypeDoc