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

x/deno/cli/js/lib.deno_runtime.d.ts>__eventTarget.EventTarget

A modern runtime for JavaScript and TypeScript.
Go to Latest
class __eventTarget.EventTarget
implements [__domTypes.EventTarget]
import { __eventTarget } from "https://deno.land/x/deno@v0.30.0/cli/js/lib.deno_runtime.d.ts";
const { EventTarget } = __eventTarget;

Properties

private
[eventTargetAssignedSlot]
private
[eventTargetHasActivationBehavior]
[__domTypes.eventTargetHost]: __domTypes.EventTarget | null
[__domTypes.eventTargetListeners]: [type in string]: __domTypes.EventListener[]
[__domTypes.eventTargetMode]: string
[__domTypes.eventTargetNodeType]: __domTypes.NodeType
readonly
[Symbol.toStringTag]: string

Methods

addEventListener(
type: string,
callback: (event: __domTypes.Event) => void | null,
): void
removeEventListener(
type: string,
callback: (event: __domTypes.Event) => void | null,
options?: __domTypes.EventListenerOptions | boolean,
): void