Skip to content

Commit b89d10d

Browse files
authored
Fix/MapProvider return type (#33)
* 1.4.8 * fix(types): fix the MapProvider return type
1 parent 117d2b9 commit b89d10d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/map-provider.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import React, {useState, useEffect} from 'react';
33
import GoogleMap from './google-map';
44

55
export interface GoogleMapProviderProps {
6-
children: React.ReactElement;
76
googleMapsAPIKey: string;
87
mapContainer?: HTMLElement | null;
98
options: google.maps.MapOptions;
@@ -28,7 +27,9 @@ export const GoogleMapContext = React.createContext<GoogleMapContextType>({
2827
/**
2928
* The global Google Map provider
3029
*/
31-
const GoogleMapProvider = (props: GoogleMapProviderProps): React.ReactNode => {
30+
const GoogleMapProvider: React.FunctionComponent<GoogleMapProviderProps> = (
31+
props
32+
) => {
3233
const {
3334
children,
3435
googleMapsAPIKey,

0 commit comments

Comments
 (0)