Defaults for the Layer, Source and Feature generics

This commit is contained in:
Andreas Hocevar
2022-01-26 19:07:47 +01:00
parent 2e5c1f2af9
commit 94cc414ea2
9 changed files with 26 additions and 19 deletions

View File

@@ -421,7 +421,7 @@ class Draw extends PointerInteraction {
/**
* Sketch feature.
* @type {Feature}
* @type {Feature<import('../geom/SimpleGeometry.js').default>}
* @private
*/
this.sketchFeature_ = null;
@@ -1022,7 +1022,7 @@ class Draw extends PointerInteraction {
/**
* Stop drawing without adding the sketch feature to the target layer.
* @return {Feature} The sketch feature (or null if none).
* @return {Feature<import("../geom/SimpleGeometry.js").default>} The sketch feature (or null if none).
* @private
*/
abortDrawing_() {

View File

@@ -253,7 +253,7 @@ class Modify extends PointerInteraction {
/**
* Editing vertex.
* @type {Feature}
* @type {Feature<Point>}
* @private
*/
this.vertexFeature_ = null;