From 7a5bee914f757c95946c3f03c83b3398b487df50 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 4 Apr 2018 17:28:29 +0200 Subject: [PATCH] feat(plugin): add Microdoft App Center Analytics plugin --- .../plugins/app-center-analytics/index.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/app-center-analytics/index.ts b/src/@ionic-native/plugins/app-center-analytics/index.ts index d2163113..3d20c5e6 100644 --- a/src/@ionic-native/plugins/app-center-analytics/index.ts +++ b/src/@ionic-native/plugins/app-center-analytics/index.ts @@ -1,6 +1,10 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +export interface StringMap { + [s: string]: string; +} + /** * @name App Center Analytics * @description @@ -27,6 +31,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * }); * * ``` + * @interfaces + * StringMap */ @Plugin({ pluginName: 'AppCenterAnalytics', @@ -41,14 +47,11 @@ export class AppCenterAnalytics extends IonicNativePlugin { /** * Tracks an custom event * @param {string} eventName Event name - * @param {{[s:string]:string}} properties Event properties + * @param {StringMap} properties Event properties * @returns {Promise} */ @Cordova() - trackEvent( - eventName: string, - properties: { [s: string]: string } - ): Promise { + trackEvent(eventName: string, properties: StringMap): Promise { return; }