@types/component-emitter
TypeScript definitions for component-emitter
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ gnpm install @types/component-emitter 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/component-emitter

Summary

This package contains type definitions for component-emitter (https://www.npmjs.com/package/component-emitter).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/component-emitter.

index.d.ts

// Type definitions for component-emitter v1.2.1
// Project: https://www.npmjs.com/package/component-emitter
// Definitions by: Peter Snider <https://github.com/psnider>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

// TypeScript Version: 2.2

interface Emitter<Event = string> {
    on(event: Event, listener: Function): Emitter;
    once(event: Event, listener: Function): Emitter;
    off(event?: Event, listener?: Function): Emitter;
    emit(event: Event, ...args: any[]): Emitter;
    listeners(event: Event): Function[];
    hasListeners(event: Event): boolean;
    removeListener(event?: Event, listener?: Function): Emitter;
    removeEventListener(event?: Event, listener?: Function): Emitter;
    removeAllListeners(event?: Event): Emitter;
}

declare const Emitter: {
    (obj?: object): Emitter;
    new (obj?: object): Emitter;
};

export = Emitter;

Additional Details

  • Last updated: Thu, 14 Oct 2021 19:01:31 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Peter Snider.

Current Tags

  • 1.2.11                                ...           latest (3 years ago)
  • 1.2.8                                ...           ts2.0 (6 years ago)
  • 1.2.8                                ...           ts2.1 (6 years ago)
  • 1.2.8                                ...           ts2.2 (6 years ago)
  • 1.2.8                                ...           ts2.3 (6 years ago)
  • 1.2.8                                ...           ts2.4 (6 years ago)
  • 1.2.8                                ...           ts2.5 (6 years ago)
  • 1.2.8                                ...           ts2.6 (6 years ago)
  • 1.2.8                                ...           ts2.7 (6 years ago)
  • 1.2.9                                ...           ts2.8 (5 years ago)
  • 1.2.9                                ...           ts2.9 (5 years ago)
  • 1.2.9                                ...           ts3.0 (5 years ago)
  • 1.2.10                                ...           ts3.1 (4 years ago)
  • 1.2.10                                ...           ts3.2 (4 years ago)
  • 1.2.10                                ...           ts3.3 (4 years ago)
  • 1.2.10                                ...           ts3.4 (4 years ago)
  • 1.2.10                                ...           ts3.5 (4 years ago)
  • 1.2.10                                ...           ts3.6 (4 years ago)
  • 1.2.11                                ...           ts3.7 (3 years ago)
  • 1.2.11                                ...           ts3.8 (3 years ago)
  • 1.2.11                                ...           ts3.9 (3 years ago)
  • 1.2.11                                ...           ts4.0 (3 years ago)
  • 1.2.11                                ...           ts4.1 (3 years ago)
  • 1.2.11                                ...           ts4.2 (3 years ago)
  • 1.2.11                                ...           ts4.3 (3 years ago)
  • 1.2.11                                ...           ts4.4 (3 years ago)
  • 1.2.11                                ...           ts4.5 (3 years ago)
  • 1.2.11                                ...           ts4.6 (3 years ago)
  • 1.2.11                                ...           ts4.7 (3 years ago)
  • 1.2.11                                ...           ts4.8 (3 years ago)
  • 1.2.11                                ...           ts4.9 (3 years ago)

11 Versions

  • 1.2.11                                ...           3 years ago
  • 1.2.10                                ...           4 years ago
  • 1.2.9                                ...           5 years ago
  • 1.2.8                                ...           6 years ago
  • 1.2.7                                ...           7 years ago
  • 1.2.6                                ...           7 years ago
  • 1.2.5                                ...           8 years ago
  • 1.2.4                                ...           8 years ago
  • 1.2.3                                ...           8 years ago
  • 1.2.2                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |