From 01ae8e11fc9803a0dd63bf0ff6b03cbf987e3d6b Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Sat, 8 Jul 2017 08:45:09 -0400 Subject: [PATCH] refactor(google-maps): use MapType interface instead of string --- src/@ionic-native/plugins/google-maps/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index f83c3a69..ec3616b8 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -294,7 +294,7 @@ export const GoogleMapsAnimation: { [animationName: string]: string; } = { /** * @hidden */ -export const GoogleMapsMapTypeId: { [mapType: string]: string; } = { +export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { NORMAL: 'MAP_TYPE_NORMAL', ROADMAP: 'MAP_TYPE_ROADMAP', SATELLITE: 'MAP_TYPE_SATELLITE', @@ -834,7 +834,7 @@ export class GoogleMap extends BaseClass { * @param mapTypeId {string} */ @CordovaInstance({ sync: true }) - setMapTypeId(mapTypeId: string): void { } + setMapTypeId(mapTypeId: MapType): void { } /** * Moves the camera with animation