From 61bbe3980ce8f13a92ea5c9f4eaee8311ef5c23b Mon Sep 17 00:00:00 2001 From: aalshberi Date: Tue, 5 May 2020 04:00:37 -0500 Subject: [PATCH] fix(firebase-x): return document id (#3386) * fix for #3385 * adding spaces --- src/@ionic-native/plugins/firebase-x/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 53132dfde..6ae7c89f7 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -598,7 +598,7 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - addDocumentToFirestoreCollection(document: object, collection: string, success: () => void, error: (err: string) => void): Promise { + addDocumentToFirestoreCollection(document: object, collection: string, success: (id: string) => void, error: (err: string) => void): Promise { return; } @@ -652,7 +652,7 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - fetchDocumentInFirestoreCollection(documentId: string, collection: string, success: () => void, error: (err: string) => void): Promise { + fetchDocumentInFirestoreCollection(documentId: string, collection: string, success: (doc: any) => void, error: (err: string) => void): Promise { return; } @@ -664,7 +664,7 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - fetchFirestoreCollection(collection: string, success: () => void, error: (err: string) => void): Promise { + fetchFirestoreCollection(collection: string, success: (docs: any) => void, error: (err: string) => void): Promise { return; } }