Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1bc67b0

Browse files
authored
update InfoWindow typescript props interface
update props to match the component
1 parent 5038ac4 commit 1bc67b0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎index.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ export class Circle extends React.Component<any, any> {
9696
export interface IInfoWindowProps extends Partial<google.maps.InfoWindowOptions> {
9797
google: typeof google
9898
map: google.maps.Map
99-
marker: google.maps.Marker
100-
101-
mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral
99+
marker?: google.maps.Marker
100+
position?: google.maps.LatLng | google.maps.LatLngLiteral
102101
visible?: boolean
103-
102+
children: React.ReactNode
103+
onClose(): void
104+
onOpen(): void
104105
}
105106

106107
export class InfoWindow extends React.Component<IInfoWindowProps, any> {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /