Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface CommonEventEmitter
import { type CommonEventEmitter } from "https://deno.land/x/pptr@1.2.0/src/EventEmitter.ts";

Methods

on(event: EventType, handler: Handler): CommonEventEmitter
off(event: EventType, handler: Handler): CommonEventEmitter
addListener(event: EventType, handler: Handler): CommonEventEmitter
removeListener(event: EventType, handler: Handler): CommonEventEmitter
emit(event: EventType, eventData?: any): boolean
once(event: EventType, handler: Handler): CommonEventEmitter
listenerCount(event: string): number
removeAllListeners(event?: EventType): CommonEventEmitter