Skip to content

@nhtio/tiny-typed-emitter ​

Classes ​

ClassDescription
TypedEventEmitterA strongly-typed Tiny Event Emitter.

Interfaces ​

InterfaceDescription
EventListenerMapDescribes the shape of the internal event listener map.

Type Aliases ​

Type AliasDescription
AnyRestThe shape of the arguments tuple for when the default event map is used. This is used to allow for any number of arguments to be passed to the event listeners.
ArgsThe shape of the arguments tuple for a specific event.
DefaultEventMapThe shape of the default event map.
EventMapThe default shape of the event map.
KeyA utility type used to extract the event key from the event map.
KeysA utility type used to extract the keys from the event map.
ListenerA utility type used to extract the shape of the listener function from the event map.

Variables ​

VariableDescription
versionThe current version of the package.