Skip to content

Commit fe0b1b5

Browse files
committed
Make multidb internal for now
1 parent 3ba02a0 commit fe0b1b5

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

packages/firestore/src/api/database.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export function getFirestore(app: FirebaseApp): Firestore;
211211
*
212212
* @param databaseId - The name of database.
213213
* @returns The {@link Firestore} instance of the provided app.
214+
* @internal
214215
*/
215216
export function getFirestore(databaseId: string): Firestore;
216217
/**
@@ -222,6 +223,7 @@ export function getFirestore(databaseId: string): Firestore;
222223
* instance is associated with.
223224
* @param databaseId - The name of database.
224225
* @returns The {@link Firestore} instance of the provided app.
226+
* @internal
225227
*/
226228
export function getFirestore(app: FirebaseApp, databaseId: string): Firestore;
227229
export function getFirestore(

packages/firestore/src/lite-api/database.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,21 @@ export class Firestore implements FirestoreService {
154154
}
155155
}
156156

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;
157172
/**
158173
* Initializes a new instance of Cloud Firestore with the provided settings.
159174
* Can only be called before any other functions, including
@@ -165,7 +180,13 @@ export class Firestore implements FirestoreService {
165180
* @param settings - A settings object to configure the `Firestore` instance.
166181
* @param databaseId - The name of database.
167182
* @returns A newly initialized `Firestore` instance.
183+
* @internal
168184
*/
185+
export function initializeFirestore(
186+
app: FirebaseApp,
187+
settings: FirestoreSettings,
188+
databaseId?: string
189+
): Firestore;
169190
export function initializeFirestore(
170191
app: FirebaseApp,
171192
settings: FirestoreSettings,
@@ -214,6 +235,7 @@ export function getFirestore(app: FirebaseApp): Firestore;
214235
*
215236
* @param databaseId - The name of database.
216237
* @returns The {@link Firestore} instance of the provided app.
238+
* @internal
217239
*/
218240
export function getFirestore(databaseId: string): Firestore;
219241
/**
@@ -225,6 +247,7 @@ export function getFirestore(databaseId: string): Firestore;
225247
* instance is associated with.
226248
* @param databaseId - The name of database.
227249
* @returns The {@link Firestore} instance of the provided app.
250+
* @internal
228251
*/
229252
export function getFirestore(app: FirebaseApp, databaseId: string): Firestore;
230253
export function getFirestore(

0 commit comments

Comments
 (0)