Formal typed interface for the GeoLeaf DOM event bus.
The type parameter TMap maps event names to their detail payloads. Defaults to GeoLeafEventMap for the built-in bus.
TMap
GeoLeafEventMap
Dispatches a typed custom event on document.
document
Event name (key of TMap).
Typed payload matching the event's entry in TMap.
Subscribes to a typed custom event.
Handler receiving a CustomEvent with the typed detail.
CustomEvent
Unsubscribe function.
Unsubscribes a previously registered handler.
The exact handler reference passed to on().
on()
Formal typed interface for the GeoLeaf DOM event bus.
The type parameter
TMapmaps event names to their detail payloads. Defaults toGeoLeafEventMapfor the built-in bus.