From f7b190f8e872b83bb20e0c3dca7fba101ad1d4cd Mon Sep 17 00:00:00 2001 From: Extended Component Library Team Date: Wed, 28 Feb 2024 10:25:37 -0800 Subject: [PATCH] fix: make typings of AuthorAttribution consistent with JS API PiperOrigin-RevId: 611146845 --- src/utils/googlemaps_types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/googlemaps_types.ts b/src/utils/googlemaps_types.ts index 3aad156..4b10fc9 100644 --- a/src/utils/googlemaps_types.ts +++ b/src/utils/googlemaps_types.ts @@ -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. */ @@ -24,7 +24,7 @@ export declare type Photo = Omit& { /** Place Review object. */ export declare type Review = Omit& { - authorAttribution?: AuthorAttribution; + authorAttribution: AuthorAttribution|null; }; /** Search by text request. */