From d2bd28f6bd41db14857e5fcd1d6bb55e15ebb2e7 Mon Sep 17 00:00:00 2001 From: Jed Zeins Date: Mon, 7 Nov 2022 22:23:37 +0900 Subject: [PATCH] fix(types) - add children for Marker, GoogleMaps, InfoWindow --- types/index.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index bdf0fb1f..ab265fe1 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -219,7 +219,8 @@ declare module 'react-google-maps/lib/components/GoogleMap' { import { Component } from 'react' export interface GoogleMapProps { - defaultCenter?: google.maps.LatLng | google.maps.LatLngLiteral + children?:ReactNode + defaultCenter?: google.maps.LatLng | google.maps.LatLngLiteral defaultClickableIcons?: boolean defaultHeading?: number defaultMapTypeId?: google.maps.MapTypeId | string @@ -295,7 +296,8 @@ declare module 'react-google-maps/lib/components/InfoWindow' { import { Component } from 'react' export interface InfoWindowProps { - defaultOptions?: google.maps.InfoWindowOptions + children?:ReactNode + defaultOptions?: google.maps.InfoWindowOptions defaultPosition?: google.maps.LatLng | google.maps.LatLngLiteral defaultZIndex?: number options?: google.maps.InfoWindowOptions @@ -344,7 +346,8 @@ declare module 'react-google-maps/lib/components/Marker' { import { Component } from 'react' export interface MarkerProps { - defaultAnimation?: google.maps.Animation + children?:ReactNode + defaultAnimation?: google.maps.Animation defaultClickable?: boolean defaultCursor?: string defaultDraggable?: boolean