@umituz/react-native-firebase 1.13.19 → 1.13.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-firebase",
3
- "version": "1.13.19",
3
+ "version": "1.13.20",
4
4
  "description": "Unified Firebase package for React Native apps - Auth and Firestore services using Firebase JS SDK (no native modules).",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,4 +1,4 @@
1
- import type { Firestore } from "firebase/firestore";
1
+ import type { Firestore, CollectionReference, DocumentReference, DocumentData } from "firebase/firestore";
2
2
  import { collection, doc } from "firebase/firestore";
3
3
 
4
4
  /**
@@ -21,7 +21,7 @@ export class FirestorePathResolver {
21
21
  * @param userId User identifier
22
22
  * @returns CollectionReference or null if db not initialized
23
23
  */
24
- getUserCollection(userId: string) {
24
+ getUserCollection(userId: string): CollectionReference<DocumentData> | null {
25
25
  if (!this.db) return null;
26
26
  return collection(this.db, "users", userId, this.collectionName);
27
27
  }
@@ -34,7 +34,7 @@ export class FirestorePathResolver {
34
34
  * @param documentId Document identifier
35
35
  * @returns DocumentReference or null if db not initialized
36
36
  */
37
- getDocRef(userId: string, documentId: string) {
37
+ getDocRef(userId: string, documentId: string): DocumentReference<DocumentData> | null {
38
38
  if (!this.db) return null;
39
39
  return doc(this.db, "users", userId, this.collectionName, documentId);
40
40
  }