(app?: FirebaseApp)
| 1342 | _app: FirebaseApp; |
| 1343 | |
| 1344 | constructor(app?: FirebaseApp) { |
| 1345 | if (app) { |
| 1346 | this._native = FIRFirestore.firestoreForApp(app.native); |
| 1347 | } else { |
| 1348 | if (defaultFirestore) { |
| 1349 | return defaultFirestore; |
| 1350 | } |
| 1351 | defaultFirestore = this; |
| 1352 | this._native = FIRFirestore.firestore(); |
| 1353 | } |
| 1354 | } |
| 1355 | |
| 1356 | static fromNative(store: FIRFirestore) { |
| 1357 | if (store instanceof FIRFirestore) { |