From 3523c68c52a3cbcac7e0dfbe1c28a517036a4dfe Mon Sep 17 00:00:00 2001 From: Andres Rosero <9358393+drebits@users.noreply.github.com> Date: Mon, 17 Sep 2018 03:01:23 -0500 Subject: [PATCH] @types/google-map-react - optional elementType and featureType of a MapTypeStyle (#28766) * optional elementType and featureType of a MapTypeStyle * little fix --- types/google-map-react/google-map-react-tests.tsx | 11 +++++++++++ types/google-map-react/index.d.ts | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/types/google-map-react/google-map-react-tests.tsx b/types/google-map-react/google-map-react-tests.tsx index 552e75d362..09bd8588be 100644 --- a/types/google-map-react/google-map-react-tests.tsx +++ b/types/google-map-react/google-map-react-tests.tsx @@ -13,6 +13,17 @@ const options: MapOptions = { featureType: "administrative", elementType: "all", stylers: [ {saturation: "-100"} ] + }, + { + featureType: "administrative.neighborhood", + stylers: [ {visibility: "off" } ] + }, + { + elementType: "labels.text.stroke", + stylers: [ {color: "#242f3e"} ] + }, + { + stylers: [ {color: "#fcfffd"} ] } ], }; diff --git a/types/google-map-react/index.d.ts b/types/google-map-react/index.d.ts index 6f4cf1fe7f..4c566df796 100644 --- a/types/google-map-react/index.d.ts +++ b/types/google-map-react/index.d.ts @@ -9,8 +9,8 @@ import * as React from 'react'; export type BootstrapURLKeys = ({ key: string; } | { client: string; v: string; }) & { language?: string }; export interface MapTypeStyle { - elementType: string; - featureType: string; + elementType?: string; + featureType?: string; stylers: any[]; }