@firebase/firestore 4.3.0-canary.40b3b0f65 → 4.3.0-canary.698eeb67d

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.
@@ -66,6 +66,14 @@ export declare class Firestore extends LiteFirestore {
66
66
  * @returns A newly initialized {@link Firestore} instance.
67
67
  */
68
68
  export declare function initializeFirestore(app: FirebaseApp, settings: FirestoreSettings, databaseId?: string): Firestore;
69
+ /**
70
+ * Returns the existing default {@link Firestore} instance that is associated with the
71
+ * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
72
+ * instance with default settings.
73
+ *
74
+ * @returns The default {@link Firestore} instance of the default app.
75
+ */
76
+ export declare function getFirestore(): Firestore;
69
77
  /**
70
78
  * Returns the existing default {@link Firestore} instance that is associated with the
71
79
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
@@ -73,36 +81,28 @@ export declare function initializeFirestore(app: FirebaseApp, settings: Firestor
73
81
  *
74
82
  * @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
75
83
  * instance is associated with.
76
- * @returns The {@link Firestore} instance of the provided app.
84
+ * @returns The default {@link Firestore} instance of the provided app.
77
85
  */
78
86
  export declare function getFirestore(app: FirebaseApp): Firestore;
79
87
  /**
80
- * Returns the existing {@link Firestore} instance that is associated with the
88
+ * Returns the existing named {@link Firestore} instance that is associated with the
81
89
  * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
82
90
  * instance with default settings.
83
91
  *
84
92
  * @param databaseId - The name of the database.
85
- * @returns The {@link Firestore} instance of the provided app.
93
+ * @returns The named {@link Firestore} instance of the default app.
86
94
  * @beta
87
95
  */
88
96
  export declare function getFirestore(databaseId: string): Firestore;
89
97
  /**
90
- * Returns the existing default {@link Firestore} instance that is associated with the
91
- * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
92
- * instance with default settings.
93
- *
94
- * @returns The {@link Firestore} instance of the provided app.
95
- */
96
- export declare function getFirestore(): Firestore;
97
- /**
98
- * Returns the existing default {@link Firestore} instance that is associated with the
98
+ * Returns the existing named {@link Firestore} instance that is associated with the
99
99
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
100
100
  * instance with default settings.
101
101
  *
102
102
  * @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
103
103
  * instance is associated with.
104
104
  * @param databaseId - The name of the database.
105
- * @returns The {@link Firestore} instance of the provided app.
105
+ * @returns The named {@link Firestore} instance of the provided app.
106
106
  * @beta
107
107
  */
108
108
  export declare function getFirestore(app: FirebaseApp, databaseId: string): Firestore;
@@ -6933,6 +6933,14 @@ declare class Firestore extends Firestore$1 {
6933
6933
  * @returns A newly initialized {@link Firestore} instance.
6934
6934
  */
6935
6935
  declare function initializeFirestore(app: FirebaseApp, settings: FirestoreSettings, databaseId?: string): Firestore;
6936
+ /**
6937
+ * Returns the existing default {@link Firestore} instance that is associated with the
6938
+ * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
6939
+ * instance with default settings.
6940
+ *
6941
+ * @returns The default {@link Firestore} instance of the default app.
6942
+ */
6943
+ declare function getFirestore(): Firestore;
6936
6944
  /**
6937
6945
  * Returns the existing default {@link Firestore} instance that is associated with the
6938
6946
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
@@ -6940,36 +6948,28 @@ declare function initializeFirestore(app: FirebaseApp, settings: FirestoreSettin
6940
6948
  *
6941
6949
  * @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
6942
6950
  * instance is associated with.
6943
- * @returns The {@link Firestore} instance of the provided app.
6951
+ * @returns The default {@link Firestore} instance of the provided app.
6944
6952
  */
6945
6953
  declare function getFirestore(app: FirebaseApp): Firestore;
6946
6954
  /**
6947
- * Returns the existing {@link Firestore} instance that is associated with the
6955
+ * Returns the existing named {@link Firestore} instance that is associated with the
6948
6956
  * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
6949
6957
  * instance with default settings.
6950
6958
  *
6951
6959
  * @param databaseId - The name of the database.
6952
- * @returns The {@link Firestore} instance of the provided app.
6960
+ * @returns The named {@link Firestore} instance of the default app.
6953
6961
  * @beta
6954
6962
  */
6955
6963
  declare function getFirestore(databaseId: string): Firestore;
6956
6964
  /**
6957
- * Returns the existing default {@link Firestore} instance that is associated with the
6958
- * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
6959
- * instance with default settings.
6960
- *
6961
- * @returns The {@link Firestore} instance of the provided app.
6962
- */
6963
- declare function getFirestore(): Firestore;
6964
- /**
6965
- * Returns the existing default {@link Firestore} instance that is associated with the
6965
+ * Returns the existing named {@link Firestore} instance that is associated with the
6966
6966
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
6967
6967
  * instance with default settings.
6968
6968
  *
6969
6969
  * @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
6970
6970
  * instance is associated with.
6971
6971
  * @param databaseId - The name of the database.
6972
- * @returns The {@link Firestore} instance of the provided app.
6972
+ * @returns The named {@link Firestore} instance of the provided app.
6973
6973
  * @beta
6974
6974
  */
6975
6975
  declare function getFirestore(app: FirebaseApp, databaseId: string): Firestore;