EventEmitter-1
Last updated
Last updated
@demox-labs/aleo-wallet-adapter-base / Exports / EventEmitter
Minimal EventEmitter
interface that is molded against the Node.js EventEmitter
interface.
Name | Type |
---|---|
EventEmitter
↳ BaseWalletAdapter
• new EventEmitter<EventTypes
, Context
>()
Type parameters
▪ Static
prefixed: string
| boolean
Defined in
node_modules/eventemitter3/index.d.ts:9
▸ addListener<T
>(event
, fn
, context?
): EventEmitter
<EventTypes
, Context
>
Type parameters
Parameters
Returns
EventEmitter
<EventTypes
, Context
>
Defined in
node_modules/eventemitter3/index.d.ts:45
▸ emit<T
>(event
, ...args
): boolean
Calls each of the listeners registered for a given event.
Type parameters
Parameters
Returns
boolean
Defined in
node_modules/eventemitter3/index.d.ts:32
▸ eventNames(): EventNames
<EventTypes
>[]
Return an array listing the events for which the emitter has registered listeners.
Returns
EventNames
<EventTypes
>[]
Defined in
node_modules/eventemitter3/index.d.ts:15
▸ listenerCount(event
): number
Return the number of listeners listening to a given event.
Parameters
Returns
number
Defined in
node_modules/eventemitter3/index.d.ts:27
▸ listeners<T
>(event
): EventListener
<EventTypes
, T
>[]
Return the listeners registered for a given event.
Type parameters
Parameters
Returns
EventListener
<EventTypes
, T
>[]
Defined in
node_modules/eventemitter3/index.d.ts:20
▸ off<T
>(event
, fn?
, context?
, once?
): EventEmitter
<EventTypes
, Context
>
Type parameters
Parameters
Returns
EventEmitter
<EventTypes
, Context
>
Defined in
node_modules/eventemitter3/index.d.ts:69
▸ on<T
>(event
, fn
, context?
): EventEmitter
<EventTypes
, Context
>
Add a listener for a given event.
Type parameters
Parameters
Returns
EventEmitter
<EventTypes
, Context
>
Defined in
node_modules/eventemitter3/index.d.ts:40
▸ once<T
>(event
, fn
, context?
): EventEmitter
<EventTypes
, Context
>
Add a one-time listener for a given event.
Type parameters
Parameters
Returns
EventEmitter
<EventTypes
, Context
>
Defined in
node_modules/eventemitter3/index.d.ts:54
▸ removeAllListeners(event?
): EventEmitter
<EventTypes
, Context
>
Remove all listeners, or those of the specified event.
Parameters
Returns
EventEmitter
<EventTypes
, Context
>
Defined in
node_modules/eventemitter3/index.d.ts:79
▸ removeListener<T
>(event
, fn?
, context?
, once?
): EventEmitter
<EventTypes
, Context
>
Remove the listeners of a given event.
Type parameters
Parameters
Returns
EventEmitter
<EventTypes
, Context
>
Defined in
node_modules/eventemitter3/index.d.ts:63
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
EventTypes
extends ValidEventTypes
= string
| symbol
Context
extends any
= any
EventTypes
extends ValidEventTypes
= string
| symbol
Context
extends unknown
= any
T
extends string
| symbol
event
T
fn
EventListener
<EventTypes
, T
>
context?
Context
T
extends string
| symbol
event
T
...args
Parameters
<EventListener
<EventTypes
, T
>>
event
EventNames
<EventTypes
>
T
extends string
| symbol
event
T
T
extends string
| symbol
event
T
fn?
EventListener
<EventTypes
, T
>
context?
Context
once?
boolean
T
extends string
| symbol
event
T
fn
EventListener
<EventTypes
, T
>
context?
Context
T
extends string
| symbol
event
T
fn
EventListener
<EventTypes
, T
>
context?
Context
event?
EventNames
<EventTypes
>
T
extends string
| symbol
event
T
fn?
EventListener
<EventTypes
, T
>
context?
Context
once?
boolean