@types/event-emitter

  • Version 0.3.5
  • Published
  • 3.39 kB
  • No dependencies
  • MIT license

Install

npm i @types/event-emitter
yarn add @types/event-emitter
pnpm add @types/event-emitter

Overview

TypeScript definitions for event-emitter

Index

Functions

function ee

ee: (obj?: any) => ee.Emitter;

    Interfaces

    interface Emitter

    interface Emitter {}

      property off

      off: EmitterMethod;

        property on

        on: EmitterMethod;

          property once

          once: EmitterMethod;

            method emit

            emit: (type: string, ...args: any[]) => void;

              Type Aliases

              type EmitterMethod

              type EmitterMethod = (type: string, listener: EventListener) => void;

                type EventListener

                type EventListener = (...args: any[]) => void;

                  Package Files (1)

                  Dependencies (0)

                  No dependencies.

                  Dev Dependencies (0)

                  No dev dependencies.

                  Peer Dependencies (0)

                  No peer dependencies.

                  Badge

                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/event-emitter.

                  • Markdown
                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/event-emitter)
                  • HTML
                    <a href="https://www.jsdocs.io/package/@types/event-emitter"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>