@types/event-emitter-es6
Advanced tools
Weekly downloads
Readme
npm install --save @types/event-emitter-es6
This package contains type definitions for event-emitter-es6 (https://github.com/insane-jo/event-emitter#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/event-emitter-es6.
// Type definitions for event-emitter-es6 1.1
// Project: https://github.com/insane-jo/event-emitter#readme
// Definitions by: Anton Strömkvist <https://github.com/ahstro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Options {
emitDelay?: number | undefined;
strictMode?: boolean | undefined;
}
type Listener = (...args: any[]) => void;
declare class EventEmitter {
constructor(options?: Options);
on(type: string, listener: Listener): void;
once(type: string, listener: Listener): void;
off(type: string, listener?: Listener): void;
emit(type: string, ...eventArgs: any[]): void;
emitSync(type: string, ...eventArgs: any[]): void;
destroy(): void;
}
export = EventEmitter;
These definitions were written by Anton Strömkvist.
FAQs
TypeScript definitions for event-emitter-es6
The npm package @types/event-emitter-es6 receives a total of 1,001 weekly downloads. As such, @types/event-emitter-es6 popularity was classified as popular.
We found that @types/event-emitter-es6 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.