# @types/micro-events

> TypeScript definitions for micro-events

Latest version **1.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/micro-events
pnpm add @types/micro-events
yarn add @types/micro-events
bun add @types/micro-events
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-11-07 |
| First published | 2018-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/micro-events
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/micro-events
- npm.io page: https://npm.io/package/@types/micro-events

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts2.4) — 2018-12-31
- 1.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/micro-events`

# Summary
This package contains type definitions for micro-events (https://github.com/alexanderGugel/micro-events).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/micro-events.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/micro-events/index.d.ts)
````ts
/** Event emitter class */
declare class MicroEventEmitter {
    /** Max listeners count */
    maxListeners: number;
    /** Attach listener */
    on(type: string, handler: MicroEventEmitter.EventHandler): MicroEventEmitter;
    /** Detach listener */
    off(type: string, handler?: MicroEventEmitter.EventHandler): MicroEventEmitter;
    /** Trigger event */
    emit(type: string, ...arguments: any[]): MicroEventEmitter;
}
declare namespace MicroEventEmitter {
    /** Event handler function signature */
    type EventHandler = (...args: any[]) => any;
}
export = MicroEventEmitter;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Alexander Sychev](https://github.com/AlexanderSychev).

---
_Source: https://npm.io/package/@types/micro-events · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
