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

getApp

Retrieves a {@link @firebase/app#FirebaseApp} instance.

When called with no arguments, the default app is returned. When an app name is provided, the app corresponding to that name is returned.

An exception is thrown if the app being retrieved has not yet been initialized.

@example
// Return the default app
const app = getApp();
@example
// Return a named app
const otherApp = getApp("otherApp");
function getApp(name?: string): FirebaseApp;
§
getApp(name?: string): FirebaseApp
[src]

§Parameters

§
name?: string optional
[src]
  • Optional name of the app to return. If no name is provided, the default is "[DEFAULT]".

§Return Type

§

The app corresponding to the provided app name. If no app name is provided, the default app is returned.