Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
namespace EventTargetLike.HasEventTargetAddRemove
import { EventTargetLike } from "https://deno.land/x/evt@v2.5.2/lib/types/EventTargetLike.ts";
const { HasEventTargetAddRemove } = EventTargetLike;
interface EventTargetLike.HasEventTargetAddRemove
import { type EventTargetLike } from "https://deno.land/x/evt@v2.5.2/lib/types/EventTargetLike.ts";
const { HasEventTargetAddRemove } = EventTargetLike;

Methods

addEventListener(
type: string,
listener: ((evt: E) => void) | null,
options?: boolean | HasEventTargetAddRemove.Options,
): void
removeEventListener(
type: string,
listener?: ((evt: E) => void) | null,
options?: HasEventTargetAddRemove.Options | boolean,
): void