diff --git a/src/ol/ImageTile.js b/src/ol/ImageTile.js index bb172b07e6..498c70b3b1 100644 --- a/src/ol/ImageTile.js +++ b/src/ol/ImageTile.js @@ -8,8 +8,7 @@ import {listenOnce, unlistenByKey} from './events.js'; import EventType from './events/EventType.js'; /** - * @typedef {function(new: ImageTile, import("./tilecoord.js").TileCoord, - * TileState, string, ?string, import("./Tile.js").LoadFunction)} TileClass + * @typedef {typeof ImageTile} TileClass * @api */ diff --git a/src/ol/interaction/DragAndDrop.js b/src/ol/interaction/DragAndDrop.js index 40f131c57c..4ecb0a0d1e 100644 --- a/src/ol/interaction/DragAndDrop.js +++ b/src/ol/interaction/DragAndDrop.js @@ -13,7 +13,7 @@ import {get as getProjection} from '../proj.js'; /** * @typedef {Object} Options - * @property {Array} [formatConstructors] Format constructors. + * @property {Array} [formatConstructors] Format constructors. * @property {import("../source/Vector.js").default} [source] Optional vector source where features will be added. If a source is provided * all existing features will be removed and new features will be added when * they are dropped on the target. If you want to add features to a vector @@ -101,7 +101,7 @@ class DragAndDrop extends Interaction { /** * @private - * @type {Array} + * @type {Array} */ this.formatConstructors_ = options.formatConstructors ? options.formatConstructors : []; diff --git a/src/ol/render/canvas/ReplayGroup.js b/src/ol/render/canvas/ReplayGroup.js index f70803843d..fcaf49cce3 100644 --- a/src/ol/render/canvas/ReplayGroup.js +++ b/src/ol/render/canvas/ReplayGroup.js @@ -19,9 +19,7 @@ import {create as createTransform, compose as composeTransform} from '../../tran /** - * @type {Object)>} + * @type {Object} */ const BATCH_CONSTRUCTORS = { 'Circle': CanvasPolygonReplay, diff --git a/src/ol/render/webgl/ReplayGroup.js b/src/ol/render/webgl/ReplayGroup.js index f4b6575b7e..3f8c5dd639 100644 --- a/src/ol/render/webgl/ReplayGroup.js +++ b/src/ol/render/webgl/ReplayGroup.js @@ -19,9 +19,7 @@ import WebGLTextReplay from '../webgl/TextReplay.js'; const HIT_DETECTION_SIZE = [1, 1]; /** - * @type {Object} + * @type {Object} */ const BATCH_CONSTRUCTORS = { 'Circle': WebGLCircleReplay, diff --git a/src/ol/source/TileImage.js b/src/ol/source/TileImage.js index 316cdcc1d4..f3dca1842b 100644 --- a/src/ol/source/TileImage.js +++ b/src/ol/source/TileImage.js @@ -93,8 +93,7 @@ class TileImage extends UrlTile { /** * @protected - * @type {function(new: ImageTile, import("../tilecoord.js").TileCoord, TileState, string, - * ?string, import("../Tile.js").LoadFunction, import("../Tile.js").Options=)} + * @type {typeof ImageTile} */ this.tileClass = options.tileClass !== undefined ? options.tileClass : ImageTile;