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)() | Alpha |
Constructs a new instance of the TypedEventEmitter class |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
addListener | Alpha |
readonly |
TypedEventTransform<this, TEvent> | |
off | Alpha |
readonly |
TypedEventTransform<this, TEvent> | |
on | Alpha |
readonly |
TypedEventTransform<this, TEvent> | |
once | Alpha |
readonly |
TypedEventTransform<this, TEvent> | |
prependListener | Alpha |
readonly |
TypedEventTransform<this, TEvent> | |
prependOnceListener | Alpha |
readonly |
TypedEventTransform<this, TEvent> | |
removeListener | Alpha |
readonly |
TypedEventTransform<this, TEvent> |
Constructor Details
(constructor)
Constructs a new instance of the TypedEventEmitter
class
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
constructor();
Property Details
addListener
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly addListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
off
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly off: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
on
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly on: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
once
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly once: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
prependListener
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly prependListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
prependOnceListener
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly prependOnceListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>
removeListener
To use, import via @fluid-internal/client-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly removeListener: TypedEventTransform<this, TEvent>;
Type: TypedEventTransform<this, TEvent>