From 10afd64e338154bcc02abf1315946560e1f8c700 Mon Sep 17 00:00:00 2001 From: Gustav Bylund Date: Sat, 14 Oct 2017 17:32:45 +0200 Subject: [PATCH] fix(db): inherit generics in valueChanges interface fixes #1214 --- src/database/interfaces.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/interfaces.ts b/src/database/interfaces.ts index 464633bb7..5920a32ac 100644 --- a/src/database/interfaces.ts +++ b/src/database/interfaces.ts @@ -5,7 +5,7 @@ export type FirebaseOperation = string | firebase.database.Reference | firebase. export interface AngularFireList { query: DatabaseQuery; - valueChanges(events?: ChildEvent[]): Observable; + valueChanges(events?: ChildEvent[]): Observable; snapshotChanges(events?: ChildEvent[]): Observable; stateChanges(events?: ChildEvent[]): Observable; auditTrail(events?: ChildEvent[]): Observable; @@ -17,7 +17,7 @@ export interface AngularFireList { export interface AngularFireObject { query: DatabaseQuery; - valueChanges(): Observable; + valueChanges(): Observable; snapshotChanges(): Observable; update(data: Partial): Promise; set(data: T): Promise;