import { FirebasePerformance } from 'firebase/performance' ; import { ɵgetAllInstancesOf } from '@angular/fire' ; import { from , timer } from 'rxjs' ; import { concatMap , distinct } from 'rxjs/operators' ; export interface Performance extends FirebasePerformance { } export class Performance { constructor ( performance ) { return performance ; } } export const PERFORMANCE_PROVIDER_NAME = 'performance' ; export interface PerformanceInstances extends Array < FirebasePerformance > { } export class PerformanceInstances { constructor ( ) { return ɵgetAllInstancesOf < FirebasePerformance > ( PERFORMANCE_PROVIDER_NAME ) ; } } export const performanceInstance$ = timer ( 0 , 300 ) . pipe ( concatMap ( ( ) => from ( ɵgetAllInstancesOf < FirebasePerformance > ( PERFORMANCE_PROVIDER_NAME ) ) ) , distinct ( ) ) ;