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

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

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