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

x/evt/lib/types/index.ts>EventTargetLike.NodeStyleEventEmitter.Compat

💧EventEmitter's typesafe replacement
Go to Latest
interface EventTargetLike.NodeStyleEventEmitter.Compat
import { type EventTargetLike } from "https://deno.land/x/evt@v2.4.18/lib/types/index.ts";
const { Compat } = EventTargetLike.NodeStyleEventEmitter;

Properties

addListener: (eventName: string, handler: NodeEventHandler) => void | { }
removeListener: (eventName: string, handler: NodeEventHandler) => void | { }