mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #17396 from cwmoo740/master
google-map-react update BootstrapURLKeys
This commit is contained in:
commit
5cefdd13d9
@ -1,6 +1,9 @@
|
||||
import GoogleMapReact from 'google-map-react';
|
||||
import GoogleMapReact, { BootstrapURLKeys } from 'google-map-react';
|
||||
import * as React from 'react';
|
||||
|
||||
const center = { lat: 0, lng: 0 };
|
||||
|
||||
<GoogleMapReact center={center} zoom={3}/>;
|
||||
const key: BootstrapURLKeys = { key: 'my-google-maps-key' };
|
||||
const client: BootstrapURLKeys = { client: 'my-client-identifier', v: '3.28' , language: 'en' };
|
||||
|
||||
<GoogleMapReact center={center} zoom={3} bootstrapURLKeys={client}/>;
|
||||
|
||||
5
types/google-map-react/index.d.ts
vendored
5
types/google-map-react/index.d.ts
vendored
@ -6,10 +6,7 @@
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
export interface BootstrapURLKeys {
|
||||
key: string;
|
||||
language?: string;
|
||||
}
|
||||
export type BootstrapURLKeys = ({ key: string; } | { client: string; v: string; }) & { language?: string };
|
||||
|
||||
export interface Options {
|
||||
styles?: any[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user