(fn: (injector: Injector) => FirebaseFirestore)
| 23 | } |
| 24 | |
| 25 | export function firestoreInstanceFactory(fn: (injector: Injector) => FirebaseFirestore) { |
| 26 | return (zone: NgZone, injector: Injector) => { |
| 27 | const firestore = zone.runOutsideAngular(() => fn(injector)); |
| 28 | return new Firestore(firestore); |
| 29 | }; |
| 30 | } |
| 31 | |
| 32 | const FIRESTORE_INSTANCES_PROVIDER = { |
| 33 | provide: FirestoreInstances, |
no test coverage detected