Skip to content

Commit 5189c32

Browse files
authored
fix(app): annotate initializeApp return as a promise (#8366)
1 parent d94a2d8 commit 5189c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/app/lib/modular/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export function getApps(): FirebaseApp[];
5353
* Initializes a Firebase app with the provided options and name.
5454
* @param options - Options to configure the services used in the app.
5555
* @param name - The optional name of the app to initialize ('[DEFAULT]' if omitted).
56-
* @returns FirebaseApp - The initialized Firebase app.
56+
* @returns Promise<FirebaseApp> - The initialized Firebase app.
5757
*/
58-
export function initializeApp(options: FirebaseAppOptions, name?: string): FirebaseApp;
58+
export function initializeApp(options: FirebaseAppOptions, name?: string): Promise<FirebaseApp>;
5959

6060
/**
6161
* Retrieves an instance of a Firebase app.

0 commit comments

Comments
 (0)