Add CombinedOnSignature.

This commit is contained in:
Simon Seyock
2021-06-23 17:29:33 +02:00
committed by Andreas Hocevar
parent 25a095e489
commit 1870a64984
25 changed files with 85 additions and 32 deletions

View File

@@ -61,6 +61,12 @@ class GeolocationError extends BaseEvent {
* is reported in.
*/
/**
* @typedef {import("./ObjectEventType").Types|'change:accuracy'|'change:accuracyGeometry'|'change:altitude'|
* 'change:altitudeAccuracy'|'change:heading'|'change:position'|'change:projection'|'change:speed'|'change:tracking'|
* 'change:trackingOptions'} GeolocationObjectEventTypes
*/
/**
* @classdesc
* Helper class for providing HTML5 Geolocation capabilities.
@@ -92,10 +98,10 @@ class Geolocation extends BaseObject {
super();
/***
* @type {import("./Observable").OnSignature<import("./ObjectEventType").Types|
* 'change:accuracy'|'change:accuracyGeometry'|'change:altitude'|'change:altitudeAccuracy'|'change:heading'|
* 'change:position'|'change:projection'|'change:speed'|'change:tracking'|'change:trackingOptions', import("./Object").ObjectEvent> &
* import("./Observable").OnSignature<'error', GeolocationError>}
* @type {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default> &
* import("./Observable").OnSignature<GeolocationObjectEventTypes, import("./Object").ObjectEvent> &
* import("./Observable").OnSignature<'error', GeolocationError> &
* import("./Observable").CombinedOnSignature<import("./Observable").EventTypes|GeolocationObjectEventTypes|'error'>}
*/
this.on;