Skip to content

Commit 44ab18b

Browse files
authored
fix: documentation and types (#17)
1 parent 352d758 commit 44ab18b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Component to wrap around the code where the map should be available.
108108
>
109109
{children}
110110
</GoogleMapProvider>
111+
```
111112

112113
### Properties
113114

@@ -117,10 +118,10 @@ interface GoogleMapProviderProps {
117118
googleMapsAPIKey: string;
118119
mapContainer?: HTMLElement | null;
119120
options: google.maps.MapOptions;
120-
libraries: string[];
121-
mapIds: string[];
122-
language: string;
123-
region: string;
121+
libraries?: string[];
122+
language?: string;
123+
region?: string;
124+
mapIds?: string[];
124125
onLoad?: (map: google.maps.Map) => void;
125126
}
126127
```

src/map-provider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface GoogleMapProviderProps {
77
googleMapsAPIKey: string;
88
mapContainer?: HTMLElement | null;
99
options: google.maps.MapOptions;
10-
libraries: string[];
10+
libraries?: string[];
1111
language?: string;
1212
region?: string;
1313
mapIds?: string[];

0 commit comments

Comments
 (0)