{"library":"typed-emitter","type":"library","category":null,"description":"Typed-emitter is a lightweight TypeScript-only package (zero runtime bytes) that provides a strictly typed interface for event emitters. It is currently stable at version 2.1.0, receiving minor updates for bug fixes and feature enhancements, with occasional breaking changes primarily around type constraints or specific integration points like RxJS. Unlike `@types/node` which offers loose typings, or `eventemitter3` which lacks strong argument typing, typed-emitter allows developers to define a precise `EventMap` for their emitter instances. This enables compile-time verification of event names and listener argument signatures, preventing common runtime errors. It's designed to be used with existing `EventEmitter` implementations, such as Node.js's built-in `events` module or browser-based alternatives, without providing its own implementation.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","event","emitter","typescript","interface"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typed-emitter","imports":["import TypedEmitter from 'typed-emitter'","import { FromEvent } from 'typed-emitter/rxjs'","import { Arguments } from 'typed-emitter'"]},{"cmd":"yarn add typed-emitter","imports":[]},{"cmd":"pnpm add typed-emitter","imports":[]}],"homepage":null,"github":"https://github.com/andywer/typed-emitter","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typed-emitter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typed-emitter/compatibility"}}