Installation
npm install --save @types/fbemitter
Summary
This package contains type definitions for Facebook's EventEmitter (https://github.com/facebook/emitter).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fbemitter.
export declare class EventSubscription {
listener: Function;
context: any;
remove(): void;
}
export declare class EventEmitter {
constructor();
addListener(eventType: string, listener: Function, context?: any): EventSubscription;
once(eventType: string, listener: Function, context?: any): EventSubscription;
removeAllListeners(eventType?: string): void;
removeCurrentListener(): void;
listeners(eventType: string): Function[];
emit(eventType: string, ...data: any[]): void;
}
Additional Details
- Last updated: Thu, 14 Sep 2023 15:26:41 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by kmxz.