fix(google-analytics): fix parameter types in the trackMetric method (#1780)

* Fix parameter in the trackMetric method

In the trackMetric the first parameter is a number type;

* Update index.ts
This commit is contained in:
victor sosa 2017-07-10 05:10:03 -04:00 committed by Ibby Hadeed
parent 01ae8e11fc
commit 7bbd25c1a2

View File

@ -102,7 +102,7 @@ export class GoogleAnalytics extends IonicNativePlugin {
/** /**
* Track custom metric * Track custom metric
* @param key {string} * @param key {number}
* @param value {any} * @param value {any}
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@ -110,7 +110,7 @@ export class GoogleAnalytics extends IonicNativePlugin {
successIndex: 2, successIndex: 2,
errorIndex: 3 errorIndex: 3
}) })
trackMetric(key: string, value?: any): Promise<any> { return; } trackMetric(key: number, value?: number): Promise<any> { return; }
/** /**
* Track a screen * Track a screen