Module

x/evt/lib/index.ts

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