Installation
npm install --save @types/fbemitter
Summary
This package contains type definitions for fbemitter (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: Wed, 18 Oct 2023 01:17:34 GMT
- Dependencies: none
Credits
These definitions were written by kmxz.