Skip to content

Commit dc8f357

Browse files
committed
chore: fix reference of maps types
1 parent 841992d commit dc8f357

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"react": "^16.11.0"
2828
},
2929
"devDependencies": {
30+
"@types/googlemaps": "^3.39.13",
3031
"@types/react": "^16.9.48",
3132
"@typescript-eslint/eslint-plugin": "^2.34.0",
3233
"@typescript-eslint/parser": "^2.34.0",
@@ -40,9 +41,7 @@
4041
"prettier": "^1.19.1",
4142
"typescript": "^3.9.7"
4243
},
43-
"dependencies": {
44-
"@types/googlemaps": "^3.39.13"
45-
},
44+
"dependencies": {},
4645
"bugs": {
4746
"url": "https://github.com/ubilabs/google-maps-react-hooks/issues"
4847
},

src/google-map.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import 'googlemaps';
1+
// eslint-disable-next-line
2+
/// <reference types="@types/googlemaps" />
23

34
interface GoogleMapOptions {
45
container: HTMLElement;

0 commit comments

Comments
 (0)