Skip to content

Commit

Permalink
fix: make typings of AuthorAttribution consistent with JS API
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 611146845
  • Loading branch information
Extended Component Library Team authored and copybara-github committed Feb 28, 2024
1 parent faf02ed commit f7b190f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/googlemaps_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
/** Attribution object for Place photos and reviews. */
export declare interface AuthorAttribution {
displayName: string;
photoURI?: string;
uri?: string;
photoURI: string|null;
uri: string|null;
}

/** Place Photo object. */
Expand All @@ -24,7 +24,7 @@ export declare type Photo = Omit<google.maps.places.Photo, 'attributions'>& {
/** Place Review object. */
export declare type Review =
Omit<google.maps.places.Review, 'author'|'authorURI'|'authorPhotoURI'>& {
authorAttribution?: AuthorAttribution;
authorAttribution: AuthorAttribution|null;
};

/** Search by text request. */
Expand Down

0 comments on commit f7b190f

Please sign in to comment.