_DOMEventTarget.addEventListener - Node documentation
method _DOMEventTarget.addEventListener

Usage in Deno

import { type _DOMEventTarget } from "node:events";
_DOMEventTarget.addEventListener(
eventName: string,
listener: (...args: any[]) => void,
opts?: { once: boolean; },
): any

Parameters

eventName: string
listener: (...args: any[]) => void
optional
opts: { once: boolean; }

Return Type

any