mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
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:
parent
01ae8e11fc
commit
7bbd25c1a2
@ -102,7 +102,7 @@ export class GoogleAnalytics extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Track custom metric
|
||||
* @param key {string}
|
||||
* @param key {number}
|
||||
* @param value {any}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@ -110,7 +110,7 @@ export class GoogleAnalytics extends IonicNativePlugin {
|
||||
successIndex: 2,
|
||||
errorIndex: 3
|
||||
})
|
||||
trackMetric(key: string, value?: any): Promise<any> { return; }
|
||||
trackMetric(key: number, value?: number): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* Track a screen
|
||||
|
Loading…
Reference in New Issue
Block a user