mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
[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 <andros.rosa@gmail.com> * Update types/google-map-react/google-map-react-tests.tsx Co-Authored-By: Andros Rosa Llop <andros.rosa@gmail.com>
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
d460416ac9
commit
2f36fd1758
@@ -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',
|
||||
|
||||
2
types/google-map-react/index.d.ts
vendored
2
types/google-map-react/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user