diff --git a/src/ol/Collection.js b/src/ol/Collection.js index 00376904e7..c2ae8689ad 100644 --- a/src/ol/Collection.js +++ b/src/ol/Collection.js @@ -160,7 +160,7 @@ class Collection extends BaseObject { * @api */ getLength() { - return /** @type {number} */ (this.get(Property.LENGTH)); + return this.get(Property.LENGTH); } /** diff --git a/src/ol/Feature.js b/src/ol/Feature.js index 752e0f096c..12cc0d0a40 100644 --- a/src/ol/Feature.js +++ b/src/ol/Feature.js @@ -5,8 +5,6 @@ import {assert} from './asserts.js'; import {listen, unlisten, unlistenByKey} from './events.js'; import EventType from './events/EventType.js'; import BaseObject, {getChangeEventType} from './Object.js'; -import Geometry from './geom/Geometry.js'; -import Style from './style/Style.js'; /** * @typedef {typeof Feature|typeof import("./render/Feature.js").default} FeatureClass @@ -62,7 +60,7 @@ import Style from './style/Style.js'; */ class Feature extends BaseObject { /** - * @param {Geometry|Object=} opt_geometryOrProperties + * @param {import("./geom/Geometry.js").default|Object=} opt_geometryOrProperties * You may pass a Geometry object directly, or an object literal containing * properties. If you pass an object literal, you may include a Geometry * associated with a `geometry` key. @@ -86,7 +84,7 @@ class Feature extends BaseObject { /** * User provided style. * @private - * @type {Style|Array