mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 17:35:49 +08:00
Add toJSON to LatLng class (#12075)
Reference: https://developers.google.com/maps/documentation/javascript/reference#LatLng
This commit is contained in:
committed by
Masahiro Wakame
parent
e8348095c4
commit
6ce02d59a4
2
googlemaps/google.maps.d.ts
vendored
2
googlemaps/google.maps.d.ts
vendored
@@ -1797,6 +1797,8 @@ declare namespace google.maps {
|
||||
toString(): string;
|
||||
/** Returns a string of the form "lat,lng". We round the lat/lng values to 6 decimal places by default. */
|
||||
toUrlValue(precision?: number): string;
|
||||
/** Converts to JSON representation. This function is intended to be used via JSON.stringify. */
|
||||
toJSON(): LatLngLiteral;
|
||||
}
|
||||
|
||||
export type LatLngLiteral = { lat: number; lng: number }
|
||||
|
||||
Reference in New Issue
Block a user