OnSignatures return more specific type
This commit is contained in:
@@ -103,12 +103,12 @@ class ImageSource extends Source {
|
||||
});
|
||||
|
||||
/***
|
||||
* @type {ImageSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {ImageSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.on;
|
||||
|
||||
/***
|
||||
* @type {ImageSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {ImageSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.once;
|
||||
|
||||
|
||||
@@ -548,12 +548,12 @@ class RasterSource extends ImageSource {
|
||||
});
|
||||
|
||||
/***
|
||||
* @type {RasterSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {RasterSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.on;
|
||||
|
||||
/***
|
||||
* @type {RasterSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {RasterSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.once;
|
||||
|
||||
|
||||
@@ -62,12 +62,12 @@ class TileSource extends Source {
|
||||
});
|
||||
|
||||
/***
|
||||
* @type {TileSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {TileSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.on;
|
||||
|
||||
/***
|
||||
* @type {TileSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {TileSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.once;
|
||||
|
||||
|
||||
@@ -187,12 +187,12 @@ class VectorSource extends Source {
|
||||
});
|
||||
|
||||
/***
|
||||
* @type {VectorSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {VectorSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.on;
|
||||
|
||||
/***
|
||||
* @type {VectorSourceOnSignature<import("../Observable.js").OnReturn>}
|
||||
* @type {VectorSourceOnSignature<import("../events").EventsKey>}
|
||||
*/
|
||||
this.once;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user