mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
Merge pull request #33879 from simon-neusoft/master
fix: wrong type definition for "fields" in types/google__maps PlaceDetailsRequest
This commit is contained in:
29
types/google__maps/index.d.ts
vendored
29
types/google__maps/index.d.ts
vendored
@@ -2404,9 +2404,36 @@ export interface PlaceDetailsRequest {
|
||||
* parameter from a request, ALL possible fields will be returned, and you will be billed accordingly.
|
||||
* This applies only to Place Details requests.
|
||||
*/
|
||||
fields?: Array<keyof PlaceDetailsResult>;
|
||||
fields?: PlaceDetailsRequestField[];
|
||||
}
|
||||
|
||||
export type PlaceDetailsRequestField = (
|
||||
"address_component" |
|
||||
"adr_address" |
|
||||
"alt_id" |
|
||||
"formatted_address" |
|
||||
"geometry" |
|
||||
"icon" |
|
||||
"id" |
|
||||
"name" |
|
||||
"permanently_closed" |
|
||||
"photo" |
|
||||
"place_id" |
|
||||
"plus_code" |
|
||||
"scope" |
|
||||
"type" |
|
||||
"url" |
|
||||
"user_ratings_total" |
|
||||
"utc_offset" |
|
||||
"vicinity" |
|
||||
"formatted_phone_number" |
|
||||
"international_phone_number" |
|
||||
"opening_hours" |
|
||||
"website" |
|
||||
"price_level" |
|
||||
"rating" |
|
||||
"review");
|
||||
|
||||
export interface PlaceDetailsResponse {
|
||||
/** contains metadata on the request. */
|
||||
status: PlaceDetailsResponseStatus;
|
||||
|
||||
Reference in New Issue
Block a user