fix(firebase-x): return document id (#3386)

* fix for #3385

* adding spaces
This commit is contained in:
aalshberi 2020-05-05 04:00:37 -05:00 committed by GitHub
parent 1db0ff741f
commit 61bbe3980c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<any> {
addDocumentToFirestoreCollection(document: object, collection: string, success: (id: string) => void, error: (err: string) => void): Promise<any> {
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<any> {
fetchDocumentInFirestoreCollection(documentId: string, collection: string, success: (doc: any) => void, error: (err: string) => void): Promise<any> {
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<any> {
fetchFirestoreCollection(collection: string, success: (docs: any) => void, error: (err: string) => void): Promise<any> {
return;
}
}