diff --git a/index.d.ts b/index.d.ts index 9499bf60..d3a4257d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -24,9 +24,9 @@ export interface IProvidedProps { loaded?: boolean } -type mapEventHandler = (mapProps?: IMapProps, map?: google.maps.Map, event?) => any +type mapEventHandler = (mapProps?: IMapProps, map?: google.maps.Map, event?: google.maps.event) => void -type Style = Object +type Style = Record export interface IMapProps extends google.maps.MapOptions { google: GoogleAPI @@ -64,7 +64,7 @@ export interface IMapProps extends google.maps.MapOptions { onZoomChanged?: mapEventHandler } -type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, event?) => any +type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, event?: google.maps.event) => any export interface IMarkerProps extends Partial { mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral