@@ -195,43 +195,43 @@ export function initializeFirestore(
195
195
} ) ;
196
196
}
197
197
198
+ /**
199
+ * Returns the existing default {@link Firestore} instance that is associated with the
200
+ * default {@link @firebase/app#FirebaseApp }. If no instance exists, initializes a new
201
+ * instance with default settings.
202
+ *
203
+ * @returns The default {@link Firestore} instance of the default app.
204
+ */
205
+ export function getFirestore ( ) : Firestore ;
198
206
/**
199
207
* Returns the existing default {@link Firestore} instance that is associated with the
200
208
* provided {@link @firebase/app#FirebaseApp }. If no instance exists, initializes a new
201
209
* instance with default settings.
202
210
*
203
211
* @param app - The {@link @firebase/app#FirebaseApp } instance that the returned {@link Firestore}
204
212
* instance is associated with.
205
- * @returns The {@link Firestore} instance of the provided app.
213
+ * @returns The default {@link Firestore} instance of the provided app.
206
214
*/
207
215
export function getFirestore ( app : FirebaseApp ) : Firestore ;
208
216
/**
209
- * Returns the existing {@link Firestore} instance that is associated with the
217
+ * Returns the existing named {@link Firestore} instance that is associated with the
210
218
* default {@link @firebase/app#FirebaseApp }. If no instance exists, initializes a new
211
219
* instance with default settings.
212
220
*
213
221
* @param databaseId - The name of the database.
214
- * @returns The {@link Firestore} instance of the provided app.
222
+ * @returns The named {@link Firestore} instance of the default app.
215
223
* @beta
216
224
*/
217
225
export function getFirestore ( databaseId : string ) : Firestore ;
218
226
/**
219
- * Returns the existing default {@link Firestore} instance that is associated with the
220
- * default {@link @firebase/app#FirebaseApp }. If no instance exists, initializes a new
221
- * instance with default settings.
222
- *
223
- * @returns The {@link Firestore} instance of the provided app.
224
- */
225
- export function getFirestore ( ) : Firestore ;
226
- /**
227
- * Returns the existing {@link Firestore} instance that is associated with the
227
+ * Returns the existing named {@link Firestore} instance that is associated with the
228
228
* provided {@link @firebase/app#FirebaseApp }. If no instance exists, initializes a new
229
229
* instance with default settings.
230
230
*
231
231
* @param app - The {@link @firebase/app#FirebaseApp } instance that the returned {@link Firestore}
232
232
* instance is associated with.
233
233
* @param databaseId - The name of the database.
234
- * @returns The {@link Firestore} instance of the provided app.
234
+ * @returns The named {@link Firestore} instance of the provided app.
235
235
* @beta
236
236
*/
237
237
export function getFirestore ( app : FirebaseApp , databaseId : string ) : Firestore ;
0 commit comments