Skip to content

Commit 3860c0a

Browse files
authored
docs: updating initializeApp() TypeScript @example (#3119)
1 parent 02419ce commit 3860c0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/firebase/index.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,12 +1117,13 @@ 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
1120+
* appId: "1:27992087142:web:ce....", // General Use
11211121
* projectId: "my-firebase-project", // General Use
11221122
* authDomain: "YOUR_APP.firebaseapp.com", // Auth with popup/redirect
11231123
* databaseURL: "https://YOUR_APP.firebaseio.com", // Realtime Database
11241124
* storageBucket: "YOUR_APP.appspot.com", // Storage
1125-
* messagingSenderId: "123456789" // Cloud Messaging
1125+
* messagingSenderId: "123456789", // Cloud Messaging
1126+
* measurementId: "G-12345" // Analytics
11261127
* });
11271128
* ```
11281129
*
@@ -1132,7 +1133,7 @@ declare namespace firebase {
11321133
* // Initialize another app
11331134
* var otherApp = firebase.initializeApp({
11341135
* apiKey: "AIza....",
1135-
* applicationId: "1:27992087142:web:ce....",
1136+
* appId: "1:27992087142:web:ce....",
11361137
* projectId: "my-firebase-project",
11371138
* databaseURL: "https://<OTHER_DATABASE_NAME>.firebaseio.com",
11381139
* storageBucket: "<OTHER_STORAGE_BUCKET>.appspot.com"

0 commit comments

Comments
 (0)