Socket
Socket
Sign inDemoInstall

@types/googlemaps

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/googlemaps - npm Package Compare versions

Comparing version 3.39.13 to 3.39.14

2

googlemaps/index.d.ts

@@ -21,3 +21,3 @@ // Type definitions for Google Maps JavaScript API 3.39

// TypeScript Version: 3.0
// TypeScript Version: 3.5

@@ -24,0 +24,0 @@ /*

{
"name": "@types/googlemaps",
"version": "3.39.13",
"version": "3.39.14",
"description": "TypeScript definitions for Google Maps JavaScript API",

@@ -97,4 +97,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "dc1e9de315eb70105afb45f766a0c0259f1c807ade100a9ac3d204d1a3464586",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "a0ce2e6da54a8f31288feb4830fb82697e0d27b551561c6bf4a421b28f8b7935",
"typeScriptVersion": "3.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 13 Aug 2020 15:13:04 GMT
* Last updated: Mon, 05 Oct 2020 22:04:49 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `google`

@@ -74,4 +74,2 @@ declare namespace google.maps {

type MVCEventHandler<T extends MVCObject, A extends any[]> = (this: T, ...args: A) => void;
class MVCObject {

@@ -92,3 +90,3 @@ /**

*/
addListener(eventName: string, handler: MVCEventHandler<this, any[]>): MapsEventListener;
addListener(eventName: string, handler: (this: this, ...args: any[]) => void): MapsEventListener;

@@ -95,0 +93,0 @@ /** Binds a View to a Model. */

declare namespace google.maps {
interface InfoWindowHandlerMap {
interface InfoWindowHandlerMap<T extends InfoWindow> {
/**

@@ -8,3 +8,3 @@ * This event is fired when the close button was clicked.

*/
closeclick: [];
closeclick: (this: T) => void;

@@ -18,3 +18,3 @@ /**

*/
content_changed: [];
content_changed: (this: T) => void;

@@ -26,3 +26,3 @@ /**

*/
domready: [];
domready: (this: T) => void;

@@ -36,3 +36,3 @@ /**

*/
position_changed: [];
position_changed: (this: T) => void;

@@ -46,3 +46,3 @@ /**

*/
zindex_changed: [];
zindex_changed: (this: T) => void;
}

@@ -73,8 +73,8 @@

*/
addListener<N extends keyof InfoWindowHandlerMap>(
addListener<N extends keyof InfoWindowHandlerMap<this>>(
eventName: N,
handler: MVCEventHandler<this, InfoWindowHandlerMap[N]>,
handler: InfoWindowHandlerMap<this>[N],
): MapsEventListener;
addListener(eventName: string, handler: MVCEventHandler<this, unknown[]>): MapsEventListener;
addListener(eventName: string, handler: (this: this, ...args: unknown[]) => void): MapsEventListener;

@@ -81,0 +81,0 @@ /**

declare namespace google.maps {
interface MapHandlerMap {
interface MapHandlerMap<T extends Map> {
/**

@@ -10,3 +10,3 @@ * This event is fired when the viewport bounds have changed.

*/
bounds_changed: [];
bounds_changed: (this: T) => void;

@@ -20,3 +20,3 @@ /**

*/
center_changed: [];
center_changed: (this: T) => void;

@@ -31,3 +31,3 @@ /**

*/
click: [MouseEvent | IconMouseEvent];
click: (this: T, event: MouseEvent | IconMouseEvent) => void;

@@ -38,3 +38,3 @@ /**

*/
dblclick: [MouseEvent];
dblclick: (this: T, event: MouseEvent) => void;

@@ -45,3 +45,3 @@ /**

*/
drag: [];
drag: (this: T) => void;

@@ -52,3 +52,3 @@ /**

*/
dragend: [];
dragend: (this: T) => void;

@@ -59,3 +59,3 @@ /**

*/
dragstart: [];
dragstart: (this: T) => void;

@@ -69,3 +69,3 @@ /**

*/
heading_changed: [];
heading_changed: (this: T) => void;

@@ -76,3 +76,3 @@ /**

*/
idle: [];
idle: (this: T) => void;

@@ -86,3 +86,3 @@ /**

*/
maptypeid_changed: [];
maptypeid_changed: (this: T) => void;

@@ -93,3 +93,3 @@ /**

*/
mousemove: [MouseEvent];
mousemove: (this: T, event: MouseEvent) => void;

@@ -100,3 +100,3 @@ /**

*/
mouseout: [MouseEvent];
mouseout: (this: T, event: MouseEvent) => void;

@@ -107,3 +107,3 @@ /**

*/
mouseover: [MouseEvent];
mouseover: (this: T, event: MouseEvent) => void;

@@ -115,3 +115,3 @@ /**

*/
projection_changed: [];
projection_changed: (this: T) => void;

@@ -122,3 +122,3 @@ /**

*/
rightclick: [MouseEvent];
rightclick: (this: T, event: MouseEvent) => void;

@@ -129,3 +129,3 @@ /**

*/
tilesloaded: [];
tilesloaded: (this: T) => void;

@@ -139,3 +139,3 @@ /**

*/
tilt_changed: [];
tilt_changed: (this: T) => void;

@@ -149,3 +149,3 @@ /**

*/
zoom_changed: [];
zoom_changed: (this: T) => void;
}

@@ -181,9 +181,9 @@

*/
addListener<N extends keyof MapHandlerMap>(
addListener<N extends keyof MapHandlerMap<this>>(
eventName: N,
handler: MVCEventHandler<this, MapHandlerMap[N]>,
handler: MapHandlerMap<this>[N],
): MapsEventListener;
/** @deprecated */
addListener(eventName: string, handler: MVCEventHandler<this, any[]>): MapsEventListener;
addListener(eventName: string, handler: (this: this, ...args: any[]) => void): MapsEventListener;

@@ -190,0 +190,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc