import { Observable , SchedulerLike } from 'rxjs' ; import { listChanges } from './changes' ; import { ChildEvent , DatabaseQuery , SnapshotAction } from '../interfaces' ; import { validateEventsArray } from './utils' ; export function snapshotChanges < T > ( query , events ? , scheduler ? ) { events = validateEventsArray ( events ) ; return listChanges < T > ( query , events , scheduler ) ; }