Fix more types for TypeScript

This commit is contained in:
ahocevar
2018-10-30 18:55:03 +01:00
parent 2adac0b3e7
commit 1df9189d7f
6 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ class Attribution extends Control {
continue;
}
const source = layerState.layer.getSource();
const source = /** @type {import("../layer/Layer.js").default} */ (layerState.layer).getSource();
if (!source) {
continue;
}