Skip to content

Commit

Permalink
update type declaration file for modular
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Aug 7, 2024
1 parent ba5878e commit a8799f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/firestore/lib/modular/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ export declare function getFirestore(app: FirebaseApp): Firestore;

export function getFirestore(app?: FirebaseApp): Firestore;

/**
* Returns the existing default {@link Firestore} instance that is associated with the
* provided {@link @firebase/app#FirebaseApp} and database ID. If no instance exists, initializes a new
* instance with default settings.
*
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
* instance is associated with.
* @param databaseId - The ID of the Firestore database to use. If not provided, the default database is used.
* @returns The {@link Firestore}
*/
export declare function getFirestore(app?: FirebaseApp, databaseId?: string): Firestore;

/**
* Gets a `DocumentReference` instance that refers to the document at the
* specified absolute path.
Expand Down

0 comments on commit a8799f2

Please sign in to comment.