type casting
This commit is contained in:
@@ -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