mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
Merge pull request #19768 from amritk/master
Added some missing members to googlemaps opening_hours
This commit is contained in:
Vendored
+14
-9
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Google Maps JavaScript API 3.26
|
||||
// Type definitions for Google Maps JavaScript API 3.29
|
||||
// Project: https://developers.google.com/maps/
|
||||
// Definitions by: Folia A/S <http://www.folia.dk>, Chris Wrench <https://github.com/cgwrench>, Kiarash Ghiaseddin <https://github.com/Silver-Connection/DefinitelyTyped>, Grant Hutchins <https://github.com/nertzy>, Denis Atyasov <https://github.com/xaolas>, Michael McMullin <https://github.com/mrmcnerd>, Martin Costello <https://github.com/martincostello>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -2476,19 +2476,22 @@ declare namespace google.maps {
|
||||
}
|
||||
|
||||
export interface OpeningHours {
|
||||
open_now: boolean,
|
||||
periods: OpeningPeriod[],
|
||||
weekday_text: string[]
|
||||
open_now: boolean;
|
||||
periods: OpeningPeriod[];
|
||||
weekday_text: string[];
|
||||
}
|
||||
|
||||
export interface OpeningPeriod {
|
||||
open: OpeningHoursTime,
|
||||
close?: OpeningHoursTime
|
||||
open: OpeningHoursTime;
|
||||
close?: OpeningHoursTime;
|
||||
}
|
||||
|
||||
export interface OpeningHoursTime {
|
||||
day: number,
|
||||
time: string
|
||||
day: number;
|
||||
hours: number;
|
||||
minutes: number;
|
||||
nextDate: number;
|
||||
time: string;
|
||||
}
|
||||
|
||||
export interface PredictionTerm {
|
||||
@@ -2549,12 +2552,13 @@ declare namespace google.maps {
|
||||
|
||||
export interface PlaceResult {
|
||||
address_components: GeocoderAddressComponent[];
|
||||
aspects: PlaceAspectRating[]; /* Deprecated. Will be removed May 2, 2017 */
|
||||
adr_address: string;
|
||||
formatted_address: string;
|
||||
formatted_phone_number: string;
|
||||
geometry: PlaceGeometry;
|
||||
html_attributions: string[];
|
||||
icon: string;
|
||||
id: string;
|
||||
international_phone_number: string;
|
||||
name: string;
|
||||
opening_hours: OpeningHours;
|
||||
@@ -2566,6 +2570,7 @@ declare namespace google.maps {
|
||||
reviews: PlaceReview[];
|
||||
types: string[];
|
||||
url: string;
|
||||
utc_offset: number;
|
||||
vicinity: string;
|
||||
website: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user