@wppconnect/wa-js - v3.17.0
Preparing search index...
ev
on
Variable on
Const
on
:
{
<
Name
extends
|
"blocklist.sync"
|
"call.incoming_call"
|
(keyof ChatEventTypes)
|
"config.update"
|
(keyof ConnEventTypes)
|
"group.participant_changed"
|
"order.payment_status"
|
"status.sync"
|
(keyof WebpackEvents)
|
"alfa"
|
"beta"
,
>
(
event
:
Name
,
listener
:
(
...
args
:
ListenerType
<
(
BlocklistEventTypes
&
CallEventTypes
&
ChatEventTypes
&
ConfigEventTypes
&
ConnEventTypes
&
GroupEventTypes
&
OrderEventTypes
&
StatusEventTypes
&
WebpackEvents
&
{
alfa
:
string
;
beta
:
(
from
:
number
,
to
:
string
)
=>
void
;
}
)
[
Name
]
,
>
,
)
=>
void
,
options
:
OnOptions
&
{
objectify
:
true
}
,
)
:
Listener
;
<
Name
extends
|
"blocklist.sync"
|
"call.incoming_call"
|
(keyof ChatEventTypes)
|
"config.update"
|
(keyof ConnEventTypes)
|
"group.participant_changed"
|
"order.payment_status"
|
"status.sync"
|
(keyof WebpackEvents)
|
"alfa"
|
"beta"
,
>
(
event
:
Name
,
listener
:
(
...
args
:
ListenerType
<
(
BlocklistEventTypes
&
CallEventTypes
&
ChatEventTypes
&
ConfigEventTypes
&
ConnEventTypes
&
GroupEventTypes
&
OrderEventTypes
&
StatusEventTypes
&
WebpackEvents
&
{
alfa
:
string
;
beta
:
(
from
:
number
,
to
:
string
)
=>
void
;
}
)
[
Name
]
,
>
,
)
=>
void
,
options
?:
boolean
|
OnOptions
,
)
:
this
;
}
= ...
Type declaration
<
Name
extends
|
"blocklist.sync"
|
"call.incoming_call"
|
(keyof ChatEventTypes)
|
"config.update"
|
(keyof ConnEventTypes)
|
"group.participant_changed"
|
"order.payment_status"
|
"status.sync"
|
(keyof WebpackEvents)
|
"alfa"
|
"beta"
,
>
(
event
:
Name
,
listener
:
(
...
args
:
ListenerType
<
(
BlocklistEventTypes
&
CallEventTypes
&
ChatEventTypes
&
ConfigEventTypes
&
ConnEventTypes
&
GroupEventTypes
&
OrderEventTypes
&
StatusEventTypes
&
WebpackEvents
&
{
alfa
:
string
;
beta
:
(
from
:
number
,
to
:
string
)
=>
void
;
}
)
[
Name
]
,
>
,
)
=>
void
,
options
:
OnOptions
&
{
objectify
:
true
}
,
)
:
Listener
Adds a listener to the end of the listeners array for the specified event.
Type Parameters
Name
extends
|
"blocklist.sync"
|
"call.incoming_call"
|
(keyof ChatEventTypes)
|
"config.update"
|
(keyof ConnEventTypes)
|
"group.participant_changed"
|
"order.payment_status"
|
"status.sync"
|
(keyof WebpackEvents)
|
"alfa"
|
"beta"
Parameters
event
:
Name
listener
:
(
...
args
:
ListenerType
<
(
BlocklistEventTypes
&
CallEventTypes
&
ChatEventTypes
&
ConfigEventTypes
&
ConnEventTypes
&
GroupEventTypes
&
OrderEventTypes
&
StatusEventTypes
&
WebpackEvents
&
{
alfa
:
string
;
beta
:
(
from
:
number
,
to
:
string
)
=>
void
;
}
)
[
Name
]
,
>
,
)
=>
void
options
:
OnOptions
&
{
objectify
:
true
}
Returns
Listener
<
Name
extends
|
"blocklist.sync"
|
"call.incoming_call"
|
(keyof ChatEventTypes)
|
"config.update"
|
(keyof ConnEventTypes)
|
"group.participant_changed"
|
"order.payment_status"
|
"status.sync"
|
(keyof WebpackEvents)
|
"alfa"
|
"beta"
,
>
(
event
:
Name
,
listener
:
(
...
args
:
ListenerType
<
(
BlocklistEventTypes
&
CallEventTypes
&
ChatEventTypes
&
ConfigEventTypes
&
ConnEventTypes
&
GroupEventTypes
&
OrderEventTypes
&
StatusEventTypes
&
WebpackEvents
&
{
alfa
:
string
;
beta
:
(
from
:
number
,
to
:
string
)
=>
void
;
}
)
[
Name
]
,
>
,
)
=>
void
,
options
?:
boolean
|
OnOptions
,
)
:
this
Adds a listener to the end of the listeners array for the specified event.
Type Parameters
Name
extends
|
"blocklist.sync"
|
"call.incoming_call"
|
(keyof ChatEventTypes)
|
"config.update"
|
(keyof ConnEventTypes)
|
"group.participant_changed"
|
"order.payment_status"
|
"status.sync"
|
(keyof WebpackEvents)
|
"alfa"
|
"beta"
Parameters
event
:
Name
listener
:
(
...
args
:
ListenerType
<
(
BlocklistEventTypes
&
CallEventTypes
&
ChatEventTypes
&
ConfigEventTypes
&
ConnEventTypes
&
GroupEventTypes
&
OrderEventTypes
&
StatusEventTypes
&
WebpackEvents
&
{
alfa
:
string
;
beta
:
(
from
:
number
,
to
:
string
)
=>
void
;
}
)
[
Name
]
,
>
,
)
=>
void
Optional
options
:
boolean
|
OnOptions
Returns
this
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@wppconnect/wa-js - v3.17.0
Loading...
Adds a listener to the end of the listeners array for the specified event.