Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

initializeFirestore

Initializes a new instance of Firestore with the provided settings. Can only be called before any other function, including {@link (getFirestore:1)}. If the custom settings are empty, this function is equivalent to calling {@link (getFirestore:1)}.

function initializeFirestore(
databaseId?: string,
): Firestore;
§
initializeFirestore(app: FirebaseApp, settings: FirestoreSettings, databaseId?: string): Firestore
[src]

§Parameters

§
  • The {@link @firebase/app#FirebaseApp} with which the Firestore instance will be associated.
§
  • A settings object to configure the Firestore instance.
§
databaseId?: string optional
[src]
  • The name of the database.

§Return Type

§

A newly initialized Firestore instance.