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

Appearance settings

Commit 0bf10d5

Browse filesBrowse files
committed
Make types pass with strict tsconfig
1 parent ab1028c commit 0bf10d5
Copy full SHA for 0bf10d5

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎index.d.ts

Copy file name to clipboardExpand all lines: index.d.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export interface IProvidedProps {
2424
loaded?: boolean
2525
}
2626

27-
type mapEventHandler = (mapProps?: IMapProps, map?: google.maps.Map, event?) => any
27+
type mapEventHandler = (mapProps?: IMapProps, map?: google.maps.Map, event?: google.maps.MouseEvent) => void
2828

29-
type Style = Object<string, string | number | boolean>
29+
type Style = Record<string, string | number | boolean>
3030

3131
export interface IMapProps extends google.maps.MapOptions {
3232
google: GoogleAPI
@@ -64,7 +64,7 @@ export interface IMapProps extends google.maps.MapOptions {
6464
onZoomChanged?: mapEventHandler
6565
}
6666

67-
type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, event?) => any
67+
type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, event?: google.maps.MouseEvent) => any
6868

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.