Skip to content

Commit aef82bc

Browse files
authored
docs(README): add note about @types/google.maps (#565)
closes #564
1 parent 0b259ad commit aef82bc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ Available via npm as the package [@googlemaps/js-api-loader](https://www.npmjs.c
1919
npm i @googlemaps/js-api-loader
2020
```
2121

22-
or
23-
24-
```sh
25-
yarn add @googlemaps/js-api-loader
26-
```
27-
2822
Alternatively you may add the umd package directly to the html document using the unpkg link.
2923

3024
```html
@@ -33,6 +27,14 @@ Alternatively you may add the umd package directly to the html document using th
3327

3428
When adding via unpkg, the loader can be accessed at `google.maps.plugins.loader.Loader`.
3529

30+
### TypeScript
31+
32+
TypeScript users need to install the following types package.
33+
34+
```sh
35+
npm i -D @types/google.maps
36+
```
37+
3638
## Documentation
3739

3840
The reference documentation can be found at this [link](https://googlemaps.github.io/js-api-loader/index.html). The Google Maps JavaScript API [documentation](https://developers.google.com/maps/documentation/javascript/tutorial) is the authoritative source for the loader options.

0 commit comments

Comments
 (0)