Skip to main content

Built and signed on GitHub Actions

Strictly typed EventTarget that directly extends EventTarget to function as a drop-in replacement. It works with all Event-Types and accounts for basically no additional bundle-size.

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
100%
Published
2 months ago (1.1.1)

Add Package

deno add @derzade/typescript-event-target

Import symbol

import { type TypedEventListener } from "@derzade/typescript-event-target";

Add Package

npx jsr add @derzade/typescript-event-target

Import symbol

import { type TypedEventListener } from "@derzade/typescript-event-target";

Add Package

yarn dlx jsr add @derzade/typescript-event-target

Import symbol

import { type TypedEventListener } from "@derzade/typescript-event-target";

Add Package

pnpm dlx jsr add @derzade/typescript-event-target

Import symbol

import { type TypedEventListener } from "@derzade/typescript-event-target";

Add Package

bunx jsr add @derzade/typescript-event-target

Import symbol

import { type TypedEventListener } from "@derzade/typescript-event-target";