type casting

This commit is contained in:
mike-000
2020-07-20 17:02:38 +01:00
committed by GitHub
parent 1812ce8b28
commit 21f4d4998b

View File

@@ -149,13 +149,13 @@ class DragAndDrop extends Interaction {
if (features && features.length > 0) {
if (this.source_) {
this.source_.clear();
this.source_.addFeatures(features);
this.source_.addFeatures(/** @type {Array<import("../Feature.js").default>} */ (features));
}
this.dispatchEvent(
new DragAndDropEvent(
DragAndDropEventType.ADD_FEATURES,
file,
features,
/** @type {Array<import("../Feature.js").default>} */ (features),
projection
)
);