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

x/evt/lib/index.ts>EventTargetLike.HasEventTargetAddRemove

💧EventEmitter's typesafe replacement
Go to Latest
namespace EventTargetLike.HasEventTargetAddRemove
import { EventTargetLike } from "https://deno.land/x/evt@v2.4.17/lib/index.ts";
const { HasEventTargetAddRemove } = EventTargetLike;
interface EventTargetLike.HasEventTargetAddRemove
import { type EventTargetLike } from "https://deno.land/x/evt@v2.4.17/lib/index.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