Skip to content

Commit

Permalink
Fixed remaining linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MyIgel committed Nov 10, 2023
1 parent 056ba66 commit df07ff6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/map/clientlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export const ClientLayer = L.GridLayer.extend({
this.redraw();
},
createTile: function (tilePoint: Coords) {
let tile = L.DomUtil.create("canvas", "leaflet-tile");
let tile: HTMLElement & {
width?: number;
height?: number;
getContext?: (type: string) => CanvasRenderingContext2D;
} = L.DomUtil.create("canvas", "leaflet-tile");

let tileSize = this.options.tileSize;
tile.width = tileSize;
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const Router = function (language: ReturnType<typeof Language>) {
}
}

var router = new Navigo(null, true, "#!");
let router = new Navigo(null, true, "#!");

router
.on(
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
"vite-plugin-pwa": "^0.16.5"
},
"dependencies": {
"@types/d3-collection": "^1.0.12",
"@types/d3-drag": "^3.0.5",
"@types/d3-ease": "^3.0.1",
"@types/d3-force": "^3.0.7",
"@types/d3-interpolate": "^3.0.3",
"@types/d3-selection": "^3.0.8",
"@types/d3-timer": "^3.0.1",
"@types/d3-zoom": "^3.0.6",
"@types/leaflet": "^1.7.1",
Expand Down

0 comments on commit df07ff6

Please sign in to comment.