diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 53132dfd..6ae7c89f 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; } }