(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike)
| 6 | |
| 7 | |
| 8 | export function auditTrail<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]> { |
| 9 | const auditTrail$ = stateChanges<T>(query, events) |
| 10 | .pipe( |
| 11 | scan((current, action) => [...current, action], []) |
| 12 | ); |
| 13 | return waitForLoaded<T>(query, auditTrail$, scheduler); |
| 14 | } |
| 15 | |
| 16 | interface LoadedMetadata { |
| 17 | data: AngularFireAction<DataSnapshot>; |