Fix more types for TypeScript
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user