Skip to main content
Module

x/evtemitter/mod.ts

Eventemitter for deno.
Go to Latest
import * as evtemitter from "https://deno.land/x/evtemitter@v3.0.0/mod.ts";

Classes

Strictly typed version of an EventEmitter. A TypedEventEmitter takes type parameters for mappings of event names to event data types, and strictly types method calls to the EventEmitter according to these event maps.

Strictly typed version of an EventEmitter. A TypedEventEmitter takes type parameters for mappings of event names to event data types, and strictly types method calls to the EventEmitter according to these event maps.

Interfaces

Interface for classes that aren't EventEmitters, but still expose a strictly typed emit method.

Type Aliases

Returns a union type containing all the keys of an event map.

Returns an untyped listener type if T is never; otherwise, returns T.

The event names that are either in ReservedEvents or in UserEvents

Type of a listener of a user event or a reserved event. If Ev is in ReservedEvents, the reserved event listener is returned.