Skip to content

EventMap

EventMap = Record<string, unknown>

Defined in: types.ts:1238

The wide event map: any event name, unknown payload. on() is keyed by the built-in map intersected with this one, which is what lets a custom event name through the named overload while the built-in names keep their narrowed payloads (#183).