Skip to content

Commit

Permalink
Install @types/leaflet
Browse files Browse the repository at this point in the history
This is a band-aid fix to an issue with tsc on src/map.js using
leaflet-gesture-handling's TS declaration file, which requires leaflet
types that are not provided by the leaflet package.

See this GitHub PR discussion¹ for a complete explanation and
alternative solutions.

¹ #1450 (comment)
  • Loading branch information
victorlin committed May 9, 2023
1 parent b888bad commit 7843410
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"yaml-front-matter": "^4.0.0"
},
"devDependencies": {
"@types/leaflet": "^1.9.3",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
Expand Down

0 comments on commit 7843410

Please sign in to comment.