TypedEventEmitter Class
Event Emitter helper class the supports emitting typed events. \
To use, import via @fluid-internal/client-utils/legacy.
For more information about our API support guarantees, see here.
Signature
export declare class TypedEventEmitter<TEvent> extends EventEmitter implements IEventProvider<TEvent & IEvent>
Extends: EventEmitter
Implements: IEventProvider<TEvent & IEvent>
Type Parameters
| Parameter | Description |
|---|---|
| TEvent |
Constructors
| Constructor | Alerts | Description |
|---|---|---|
| (constructor)() | Beta |
Constructs a new instance of the TypedEventEmitter class |
Properties
| Property | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| addListener | Beta |
readonly |
TypedEventTransform<this, TEvent> | |
| off | Beta |
readonly |
TypedEventTransform<this, TEvent> | |
| on | Beta |
readonly |
TypedEventTransform<this, TEvent> | |
| once | Beta |
readonly |
TypedEventTransform<this, TEvent> | |
| prependListener | Beta |
readonly |
TypedEventTransform<this, TEvent> | |
| prependOnceListener | Beta |
readonly |
TypedEventTransform<this, TEvent> | |
| removeListener | Beta |
readonly |
TypedEventTransform<this, TEvent> |
Constructor Details
(constructor)
Constructs a new instance of the TypedEventEmitter class
For more information about our API support guarantees, see here.
Signature
constructor();
Property Details
addListener
For more information about our API support guarantees, see here.
Signature
readonly addListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
off
For more information about our API support guarantees, see here.
Signature
readonly off: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
on
For more information about our API support guarantees, see here.
Signature
readonly on: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
once
For more information about our API support guarantees, see here.
Signature
readonly once: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
prependListener
For more information about our API support guarantees, see here.
Signature
readonly prependListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
prependOnceListener
For more information about our API support guarantees, see here.
Signature
readonly prependOnceListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
removeListener
For more information about our API support guarantees, see here.
Signature
readonly removeListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>