Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types) - add children for Marker, GoogleMaps, InfoWindow #1095

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(types) - add children for Marker, GoogleMaps, InfoWindow
mikan-sour committed Nov 7, 2022
commit d2bd28f6bd41db14857e5fcd1d6bb55e15ebb2e7
9 changes: 6 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -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