Skip to content

Commit d9b599f

Browse files
authored
Added mandatory FirebaseOptions fo JavaDoc example. (#2778)
* Added mandatory FirebaseOptions fo JavaDoc example. * added missing commas * Addressed comments Fixed platform of App ID example: "android" -> "web". Added mandatory Firebase options to example of secondary FirebaseApp.
1 parent ad406d2 commit d9b599f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/firebase/index.d.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,8 @@ declare namespace firebase {
11171117
* // https://console.firebase.google.com
11181118
* firebase.initializeApp({
11191119
* apiKey: "AIza....", // Auth / General Use
1120+
* applicationId: "1:27992087142:web:ce....", // General Use
1121+
* projectId: "my-firebase-project", // General Use
11201122
* authDomain: "YOUR_APP.firebaseapp.com", // Auth with popup/redirect
11211123
* databaseURL: "https://YOUR_APP.firebaseio.com", // Realtime Database
11221124
* storageBucket: "YOUR_APP.appspot.com", // Storage
@@ -1129,9 +1131,12 @@ declare namespace firebase {
11291131
*
11301132
* // Initialize another app
11311133
* var otherApp = firebase.initializeApp({
1134+
* apiKey: "AIza....",
1135+
* applicationId: "1:27992087142:web:ce....",
1136+
* projectId: "my-firebase-project",
11321137
* databaseURL: "https://<OTHER_DATABASE_NAME>.firebaseio.com",
11331138
* storageBucket: "<OTHER_STORAGE_BUCKET>.appspot.com"
1134-
* }, "otherApp");
1139+
* }, "nameOfOtherApp");
11351140
* ```
11361141
*
11371142
* @param options Options to configure the app's services.

0 commit comments

Comments
 (0)