type casting
This commit is contained in:
1 parent
1812ce8b28
commit
21f4d4998b
1 file changed
+2
-2
@@ -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
|
||||
)
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user