Search
Preparing search index...
The search index is not available
AncientSouls Documentation
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"ancient-channels/src/lib/channel"
IChannel
Interface IChannel<IEventsList>
Type parameters
IEventsList
:
IChannelEventsList
Hierarchy
INode
<
IEventsList
>
IChannel
Channel
Indexable
[
key:
string
]:
any
Index
Constructors
constructor
Properties
emitter
getter
id
is
Destroyed
is
Reading
Methods
destroy
emit
generate
Id
get
got
off
on
once
ready
Constructors
constructor
new IChannel
(
id
?:
string
)
:
any
Parameters
Optional
id:
string
Returns
any
Properties
emitter
emitter
:
EventEmitter
Optional
getter
getter
:
IChannelGetter
<
any
>
id
id
:
string
is
Destroyed
is
Destroyed
:
boolean
is
Reading
is
Reading
:
boolean
Methods
destroy
destroy
(
)
:
void
Returns
void
emit
emit<IE>
(
eventName
:
IE
, data
:
IEventsList[IE]
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
data:
IEventsList[IE]
Returns
this
generate
Id
generate
Id
(
)
:
string
Returns
string
get
get
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
got
got
(
data
?:
Promise
<
any
>
|
any
)
:
void
Parameters
Optional
data:
Promise
<
any
>
|
any
Returns
void
off
off<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
on
on<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
once
once<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
ready
ready
(
)
:
void
Returns
void
Globals
"ancient-
channels/src/lib/channel"
Channel
IChannel
constructor
emitter
getter
id
is
Destroyed
is
Reading
destroy
emit
generate
Id
get
got
off
on
once
ready
IChannel
Events
List
IChannel
Getter
TChannel
Mixed
Channel
mixin
Generated using
TypeDoc