From 2f36fd175864cc34df71ae0a4cb9d28b95ebd0e7 Mon Sep 17 00:00:00 2001 From: NicoleEtLui Date: Wed, 6 Nov 2019 00:47:00 +0100 Subject: [PATCH] [google-map-react]: add `libraries` and `region` parameters to `BootstrapURLKeys` (#38797) * [google-map-react]: add `libraries` parameter to `BootstrapURLKeys` * Update types/google-map-react/index.d.ts Co-Authored-By: Andros Rosa Llop * Update types/google-map-react/google-map-react-tests.tsx Co-Authored-By: Andros Rosa Llop --- types/google-map-react/google-map-react-tests.tsx | 4 ++-- types/google-map-react/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/google-map-react/google-map-react-tests.tsx b/types/google-map-react/google-map-react-tests.tsx index 09bd8588be..bf959e9612 100644 --- a/types/google-map-react/google-map-react-tests.tsx +++ b/types/google-map-react/google-map-react-tests.tsx @@ -3,8 +3,8 @@ import * as React from 'react'; const center = { lat: 0, lng: 0 }; -const key: BootstrapURLKeys = { key: 'my-google-maps-key' }; -const client: BootstrapURLKeys = { client: 'my-client-identifier', v: '3.28' , language: 'en' }; +const key: BootstrapURLKeys = { key: 'my-google-maps-key', libraries: "places" }; +const client: BootstrapURLKeys = { client: 'my-client-identifier', v: '3.28' , language: 'en', libraries: "places", region: "PR" }; const options: MapOptions = { zoomControl: false, gestureHandling: 'cooperative', diff --git a/types/google-map-react/index.d.ts b/types/google-map-react/index.d.ts index 0b9e337586..1e4eec707f 100644 --- a/types/google-map-react/index.d.ts +++ b/types/google-map-react/index.d.ts @@ -6,7 +6,7 @@ import * as React from 'react'; -export type BootstrapURLKeys = ({ key: string; } | { client: string; v: string; }) & { language?: string }; +export type BootstrapURLKeys = ({ key: string; } | { client: string; v: string; }) & { language?: string; region?: string; libraries?: string[] | string; }; export interface MapTypeStyle { elementType?: string;