From d9e851373e9d864f5e2d95e0d1e670c034205a6d Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 10 Mar 2020 15:32:18 +0100 Subject: [PATCH] MOBILE-3269 core: Fix return type of objectToKeyValueMap --- src/providers/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/utils/utils.ts b/src/providers/utils/utils.ts index 624371ac1..bedd0e4b0 100644 --- a/src/providers/utils/utils.ts +++ b/src/providers/utils/utils.ts @@ -1105,7 +1105,7 @@ export class CoreUtilsProvider { * @param keyPrefix Key prefix if neededs to delete it. * @return Object. */ - objectToKeyValueMap(objects: object[], keyName: string, valueName: string, keyPrefix?: string): object { + objectToKeyValueMap(objects: object[], keyName: string, valueName: string, keyPrefix?: string): {[name: string]: any} { if (!objects) { return; }