mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
fix(firebase-x): return document id (#3386)
* fix for #3385 * adding spaces
This commit is contained in:
parent
1db0ff741f
commit
61bbe3980c
@ -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.
|
* @param {function} error - callback function which will be passed a {string} error message as an argument.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@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;
|
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.
|
* @param {function} error - callback function which will be passed a {string} error message as an argument.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@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;
|
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.
|
* @param {function} error - callback function which will be passed a {string} error message as an argument.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user