Remove unnecessary type cast
`npx tsc` output is the same before and after the changes.
This commit is contained in:
@@ -43,8 +43,7 @@ class CanvasImageLayerRenderer extends CanvasLayerRenderer {
|
||||
const viewState = frameState.viewState;
|
||||
const viewResolution = viewState.resolution;
|
||||
|
||||
const imageLayer = /** @type {import("../../layer/Image.js").default} */ (this.getLayer());
|
||||
const imageSource = imageLayer.getSource();
|
||||
const imageSource = this.getLayer().getSource();
|
||||
|
||||
const hints = frameState.viewHints;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user