@types/googlemaps
Advanced tools
Comparing version 3.43.1 to 3.43.2
{ | ||
"name": "@types/googlemaps", | ||
"version": "3.43.1", | ||
"version": "3.43.2", | ||
"description": "TypeScript definitions for Google Maps JavaScript API", | ||
@@ -102,4 +102,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "02a34e74037579fe68c294365c8a5ca7cd83a43d8f00c73bedbe21f11c64cf53", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "b5e5ec9d6d9353040a9312849423203db9fdf574015a3798a06a77c98b51c577", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 06 Jan 2021 13:47:47 GMT | ||
* Last updated: Wed, 13 Jan 2021 22:43:07 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `google` |
@@ -0,1 +1,7 @@ | ||
// TODO: #50253 remove after that most libraries will go to MapMouseEvent | ||
/** | ||
* @internal | ||
*/ | ||
type GoogleMapsNativeMouseEvent = MouseEvent; | ||
declare namespace google.maps { | ||
@@ -623,6 +629,12 @@ interface MapHandlerMap<T extends Map> { | ||
*/ | ||
domEvent: MouseEvent | TouchEvent | PointerEvent | Event; | ||
domEvent: GoogleMapsNativeMouseEvent | TouchEvent | PointerEvent | Event; | ||
} | ||
// TODO: #50253 remove after that most libraries will go to MapMouseEvent | ||
/** | ||
* @deprecated https://developers.google.com/maps/documentation/javascript/releases#2020-12-09 | ||
*/ | ||
type MouseEvent = MapMouseEvent; | ||
/** | ||
* This object is sent in an event when a user clicks on an icon on the map. | ||
@@ -629,0 +641,0 @@ * The place ID of this place is stored in the placeId member. |
@@ -13,3 +13,3 @@ declare namespace google.maps { | ||
*/ | ||
click: (this: C, event: MouseEvent) => void; | ||
click: (this: C, event: MapMouseEvent) => void; | ||
@@ -32,3 +32,3 @@ /** | ||
*/ | ||
dblclick: (this: C, event: MouseEvent) => void; | ||
dblclick: (this: C, event: MapMouseEvent) => void; | ||
@@ -39,3 +39,3 @@ /** | ||
*/ | ||
drag: (this: C, event: MouseEvent) => void; | ||
drag: (this: C, event: MapMouseEvent) => void; | ||
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
dragend: (this: C, event: MouseEvent) => void; | ||
dragend: (this: C, event: MapMouseEvent) => void; | ||
@@ -59,3 +59,3 @@ /** | ||
*/ | ||
dragstart: (this: C, event: MouseEvent) => void; | ||
dragstart: (this: C, event: MapMouseEvent) => void; | ||
@@ -78,3 +78,3 @@ /** | ||
*/ | ||
mousedown: (this: C, event: MouseEvent) => void; | ||
mousedown: (this: C, event: MapMouseEvent) => void; | ||
@@ -85,3 +85,3 @@ /** | ||
*/ | ||
mouseout: (this: C, event: MouseEvent) => void; | ||
mouseout: (this: C, event: MapMouseEvent) => void; | ||
@@ -92,3 +92,3 @@ /** | ||
*/ | ||
mouseover: (this: C, event: MouseEvent) => void; | ||
mouseover: (this: C, event: MapMouseEvent) => void; | ||
@@ -99,3 +99,3 @@ /** | ||
*/ | ||
mouseup: (this: C, event: MouseEvent) => void; | ||
mouseup: (this: C, event: MapMouseEvent) => void; | ||
@@ -112,3 +112,3 @@ /** | ||
*/ | ||
rightclick: (this: C, event: MouseEvent) => void; | ||
rightclick: (this: C, event: MapMouseEvent) => void; | ||
@@ -115,0 +115,0 @@ /** |
230941
4766