Cast to Array to avoid false union mismatch

This commit is contained in:
Kevin Schmidt
2018-10-03 13:55:12 -06:00
parent c0903e6fc1
commit a92c992e1a

View File

@@ -155,7 +155,7 @@ class OverviewMap extends Control {
const ovmap = this.ovmap_; const ovmap = this.ovmap_;
if (options.layers) { if (options.layers) {
options.layers.forEach( /** @type {Array<import("../layer/Layer.js").default>} */ (options.layers).forEach(
/** /**
* @param {import("../layer/Layer.js").default} layer Layer. * @param {import("../layer/Layer.js").default} layer Layer.
*/ */