type casting

This commit is contained in:
mike-000
2020-07-20 17:02:38 +01:00
committed by GitHub
parent 1812ce8b28
commit 21f4d4998b
+2 -2
View File
@@ -149,13 +149,13 @@ class DragAndDrop extends Interaction {
if (features && features.length > 0) { if (features && features.length > 0) {
if (this.source_) { if (this.source_) {
this.source_.clear(); this.source_.clear();
this.source_.addFeatures(features); this.source_.addFeatures(/** @type {Array<import("../Feature.js").default>} */ (features));
} }
this.dispatchEvent( this.dispatchEvent(
new DragAndDropEvent( new DragAndDropEvent(
DragAndDropEventType.ADD_FEATURES, DragAndDropEventType.ADD_FEATURES,
file, file,
features, /** @type {Array<import("../Feature.js").default>} */ (features),
projection projection
) )
); );