Options
All
  • Public
  • Public/Protected
  • All
Menu

Module events

@skeldjs/events

A simple cancellable asynchronous event emitter.

You can view auto-updating documentation for this package hosted at github pages at https://skeld.js.org/modules/data.html

Index

Type aliases

EventData

EventData: Record<string | number | symbol, Eventable>

Eventable

Eventable: { eventName: string }

Type declaration

  • eventName: string

ExtractEventName

ExtractEventName<Event>: Event extends { eventName: infer X } ? X : never

Type parameters

ExtractEventType

ExtractEventType<Events, EventName>: Extract<Events[number], { eventName: EventName }>

Type parameters

ExtractEventTypes

ExtractEventTypes<Events>: {[ K in ExtractEventName<Events[number]>]: ExtractEventType<Events, K> }

Type parameters

Generated using TypeDoc