@types/googlemaps
Advanced tools
Comparing version 3.40.0 to 3.40.1
{ | ||
"name": "@types/googlemaps", | ||
"version": "3.40.0", | ||
"version": "3.40.1", | ||
"description": "TypeScript definitions for Google Maps JavaScript API", | ||
@@ -97,4 +97,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "45707351766d371027196fc3b0eaf95886c89c2b18297d52b9de9b1191c920c8", | ||
"typesPublisherContentHash": "605514d73685d929fc2e585837e505315317c27be18cefcc68c7ff490cd09400", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 08 Oct 2020 14:00:28 GMT | ||
* Last updated: Wed, 21 Oct 2020 21:01:38 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `google` |
@@ -122,13 +122,62 @@ declare namespace google.maps { | ||
/** This class extends MVCObject. */ | ||
interface MVCArrayHandlerMap<C extends MVCArray<T>, T> { | ||
/** | ||
* This event is fired when {@link MVCArray.insertAt insertAt}() is called. The event passes the index that was | ||
* passed to {@link MVCArray.insertAt insertAt}(). | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.insert_at Maps JavaScript API} | ||
*/ | ||
insert_at: (this: C, index: number) => void; | ||
/** | ||
* This event is fired when {@link MVCArray.removeAt removeAt}() is called. The event passes the index that was | ||
* passed to {@link MVCArray.removeAt removeAt}() and the element that was removed from the array. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.remove_at Maps JavaScript API} | ||
*/ | ||
remove_at: (this: C, index: number, removed: T) => void; | ||
/** | ||
* This event is fired when {@link MVCArray.setAt setAt}() is called. The event passes the index that was passed | ||
* to {@link MVCArray.setAt setAt}() and the element that was previously in the array at that index. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.set_at Maps JavaScript API} | ||
*/ | ||
set_at: (this: C, index: number, previous: T) => void; | ||
} | ||
/** | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray Maps JavaScript API} | ||
*/ | ||
class MVCArray<T> extends MVCObject { | ||
/** A mutable MVC Array. */ | ||
/** | ||
* A mutable MVC Array. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.constructor Maps JavaScript API} | ||
*/ | ||
constructor(array?: T[]); | ||
/** Removes all elements from the array. */ | ||
/** | ||
* @see {@link MVCArrayHandlerMap#insert_at insert_at} event | ||
* @see {@link MVCArrayHandlerMap#remove_at remove_at} event | ||
* @see {@link MVCArrayHandlerMap#set_at set_at} event | ||
*/ | ||
addListener<N extends keyof MVCArrayHandlerMap<this, T>>( | ||
eventName: N, | ||
handler: MVCArrayHandlerMap<this, T>[N], | ||
): MapsEventListener; | ||
/** @deprecated */ | ||
addListener(eventName: string, handler: (this: this, ...args: any[]) => void): MapsEventListener; | ||
/** | ||
* Removes all elements from the array. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.clear Maps JavaScript API} | ||
* @see {@link pop} | ||
* @see {@link removeAt} | ||
*/ | ||
clear(): void; | ||
/** | ||
* Iterate over each element, calling the provided callback. | ||
* The callback is called for each element like: callback(element, index). | ||
* Iterate over each element, calling the provided callback. The callback is called for each element like: | ||
* `callback(element, index)`. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.forEach Maps JavaScript API} | ||
* @see {@link getArray} | ||
* @see {@link getAt} | ||
*/ | ||
@@ -138,31 +187,77 @@ forEach(callback: (elem: T, i: number) => void): void; | ||
/** | ||
* Returns a reference to the underlying Array. | ||
* Warning: if the Array is mutated, no events will be fired by this object. | ||
* Returns a reference to the underlying Array. Warning: if the Array is mutated, no events will be fired by | ||
* this object. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.getArray Maps JavaScript API} | ||
* @see {@link forEach} | ||
* @see {@link getAt} | ||
*/ | ||
getArray(): T[]; | ||
/** Returns the element at the specified index. */ | ||
/** | ||
* Returns the element at the specified index. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.getAt Maps JavaScript API} | ||
* @see {@link forEach} | ||
* @see {@link getArray} | ||
* @see {@link insertAt} | ||
* @see {@link removeAt} | ||
* @see {@link setAt} | ||
*/ | ||
getAt(i: number): T; | ||
/** Returns the number of elements in this array. */ | ||
/** | ||
* Returns the number of elements in this array. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.getLength Maps JavaScript API} | ||
*/ | ||
getLength(): number; | ||
/** Inserts an element at the specified index. */ | ||
/** | ||
* Inserts an element at the specified index. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.insertAt Maps JavaScript API} | ||
* @see {@link getAt} | ||
* @see {@link push} | ||
* @see {@link removeAt} | ||
* @see {@link setAt} | ||
* @see {@link MVCArrayHandlerMap#insert_at insert_at} event | ||
*/ | ||
insertAt(i: number, elem: T): void; | ||
/** Removes the last element of the array and returns that element. */ | ||
/** | ||
* Removes the last element of the array and returns that element. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.pop Maps JavaScript API} | ||
* @see {@link clear} | ||
* @see {@link removeAt} | ||
*/ | ||
pop(): T; | ||
/** | ||
* Adds one element to the end of the array and returns the new length of | ||
* the array. | ||
* Adds one element to the end of the array and returns the new length of the array. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.push Maps JavaScript API} | ||
* @see {@link insertAt} | ||
* @see {@link setAt} | ||
*/ | ||
push(elem: T): number; | ||
/** Removes an element from the specified index. */ | ||
/** | ||
* Removes an element from the specified index. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.removeAt Maps JavaScript API} | ||
* @see {@link clear} | ||
* @see {@link getAt} | ||
* @see {@link insertAt} | ||
* @see {@link pop} | ||
* @see {@link setAt} | ||
* @see {@link MVCArrayHandlerMap#remove_at remove_at} event | ||
*/ | ||
removeAt(i: number): T; | ||
/** Sets an element at the specified index. */ | ||
/** | ||
* Sets an element at the specified index. | ||
* @see {@link https://developers.google.com/maps/documentation/javascript/reference/event#MVCArray.setAt Maps JavaScript API} | ||
* @see {@link getAt} | ||
* @see {@link insertAt} | ||
* @see {@link push} | ||
* @see {@link removeAt} | ||
* @see {@link MVCArrayHandlerMap#set_at set_at} event | ||
*/ | ||
setAt(i: number, elem: T): void; | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195812
4224