@@ -154,6 +154,21 @@ export class Firestore implements FirestoreService {
154
154
}
155
155
}
156
156
157
+ /**
158
+ * Initializes a new instance of Cloud Firestore with the provided settings.
159
+ * Can only be called before any other functions, including
160
+ * {@link getFirestore}. If the custom settings are empty, this function is
161
+ * equivalent to calling {@link getFirestore}.
162
+ *
163
+ * @param app - The {@link @firebase/app#FirebaseApp } with which the `Firestore` instance will
164
+ * be associated.
165
+ * @param settings - A settings object to configure the `Firestore` instance.
166
+ * @returns A newly initialized `Firestore` instance.
167
+ */
168
+ export function initializeFirestore (
169
+ app : FirebaseApp ,
170
+ settings : FirestoreSettings
171
+ ) : Firestore ;
157
172
/**
158
173
* Initializes a new instance of Cloud Firestore with the provided settings.
159
174
* Can only be called before any other functions, including
@@ -165,7 +180,13 @@ export class Firestore implements FirestoreService {
165
180
* @param settings - A settings object to configure the `Firestore` instance.
166
181
* @param databaseId - The name of database.
167
182
* @returns A newly initialized `Firestore` instance.
183
+ * @internal
168
184
*/
185
+ export function initializeFirestore (
186
+ app : FirebaseApp ,
187
+ settings : FirestoreSettings ,
188
+ databaseId ?: string
189
+ ) : Firestore ;
169
190
export function initializeFirestore (
170
191
app : FirebaseApp ,
171
192
settings : FirestoreSettings ,
@@ -214,6 +235,7 @@ export function getFirestore(app: FirebaseApp): Firestore;
214
235
*
215
236
* @param databaseId - The name of database.
216
237
* @returns The {@link Firestore} instance of the provided app.
238
+ * @internal
217
239
*/
218
240
export function getFirestore ( databaseId : string ) : Firestore ;
219
241
/**
@@ -225,6 +247,7 @@ export function getFirestore(databaseId: string): Firestore;
225
247
* instance is associated with.
226
248
* @param databaseId - The name of database.
227
249
* @returns The {@link Firestore} instance of the provided app.
250
+ * @internal
228
251
*/
229
252
export function getFirestore ( app : FirebaseApp , databaseId : string ) : Firestore ;
230
253
export function getFirestore (
0 commit comments