From 497aef73092dc0b782d83858f714843ed39676e1 Mon Sep 17 00:00:00 2001 From: Kevin Schmidt Date: Fri, 28 Sep 2018 07:58:43 -0600 Subject: [PATCH] Cast to parent type to fix TS errors --- src/ol/format/XMLFeature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/format/XMLFeature.js b/src/ol/format/XMLFeature.js index 5a669085b2..feb5007419 100644 --- a/src/ol/format/XMLFeature.js +++ b/src/ol/format/XMLFeature.js @@ -107,7 +107,7 @@ class XMLFeature extends FeatureFormat { readFeaturesFromDocument(doc, opt_options) { /** @type {Array} */ const features = []; - for (let n = doc.firstChild; n; n = n.nextSibling) { + for (let n = /** @type {Node} */ (doc.firstChild); n; n = n.nextSibling) { if (n.nodeType == Node.ELEMENT_NODE) { extend(features, this.readFeaturesFromNode(n, opt_options)); }