Skip to content

Commit

Permalink
fix(types): fix OverlayView type definition
Browse files Browse the repository at this point in the history
- Added missing prop types to OverlayViewProps
- Added type definitions for OverlayView static properties
  • Loading branch information
christianscott authored and tomchentw committed Jan 5, 2018
1 parent 7d0680b commit 6955d01
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,20 @@ declare module 'react-google-maps/lib/components/OverlayView' {
import { Component, ReactNode } from 'react'

export interface OverlayViewProps {
mapPaneName?: string
bounds?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral
children?: ReactNode
getPixelPositionOffset?: (width: number, height: number) => { x?: number, y?: number }
mapPaneName?: string
position?: google.maps.LatLng | google.maps.LatLngLiteral
}

export default class OverlayView extends Component<OverlayViewProps> {
static FLOAT_PANE: string
static MAP_PANE: string
static MARKER_LAYER: string
static OVERLAY_LAYER: string
static OVERLAY_MOUSE_TARGET: string

getPanes(): google.maps.MapPanes
getProjection(): google.maps.MapCanvasProjection
}
Expand Down

0 comments on commit 6955d01

Please sign in to comment.