Skip to content 

TypedEventEmitter Class

Packages > @fluidframework/common-utils > TypedEventEmitter

Event Emitter helper class the supports emitting typed events

Signature:

export declare class TypedEventEmitter<TEvent extends IEvent> extends EventEmitter implements IEventProvider<TEvent> 

Extends: EventEmitter

Implements: IEventProvider<TEvent>

Constructors

List of constructors for this class
Constructor Modifiers Description
(constructor)() Constructs a new instance of the TypedEventEmitter class

Properties

List of properties for this class
Property Modifiers Type Description
addListener TypedEventTransform
off TypedEventTransform
on TypedEventTransform
once TypedEventTransform
prependListener TypedEventTransform
prependOnceListener TypedEventTransform
removeListener TypedEventTransform

Constructors

TypedEventEmitter.(constructor)

Constructs a new instance of the TypedEventEmitter class

Signature:

constructor();

Properties

addListener

Signature:

readonly addListener: TypedEventTransform<this, TEvent>;

off

Signature:

readonly off: TypedEventTransform<this, TEvent>;

on

Signature:

readonly on: TypedEventTransform<this, TEvent>;

once

Signature:

readonly once: TypedEventTransform<this, TEvent>;

prependListener

Signature:

readonly prependListener: TypedEventTransform<this, TEvent>;

prependOnceListener

Signature:

readonly prependOnceListener: TypedEventTransform<this, TEvent>;

removeListener

Signature:

readonly removeListener: TypedEventTransform<this, TEvent>;