Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>CommonEventEmitter

Headless Chrome Deno API
Latest
interface CommonEventEmitter
import { type CommonEventEmitter } from "https://deno.land/x/pptr@1.2.0/mod.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