Skip to content

Commit

Permalink
Make types pass with strict tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
fnune committed Jul 17, 2019
1 parent ab1028c commit 0bf10d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.MouseEvent) => void

type Style = Object<string, string | number | boolean>
type Style = Record<string, string | number | boolean>

export interface IMapProps extends google.maps.MapOptions {
google: GoogleAPI
Expand Down Expand Up @@ -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.MouseEvent) => any

export interface IMarkerProps extends Partial<google.maps.MarkerOptions> {
mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral
Expand Down

0 comments on commit 0bf10d5

Please sign in to comment.