Skip to content

Commit

Permalink
fix(db): inherit generics in valueChanges interface
Browse files Browse the repository at this point in the history
fixes #1214
  • Loading branch information
Maistho authored and davideast committed Oct 17, 2017
1 parent 79f6e38 commit 10afd64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type FirebaseOperation = string | firebase.database.Reference | firebase.

export interface AngularFireList<T> {
query: DatabaseQuery;
valueChanges<T>(events?: ChildEvent[]): Observable<T[]>;
valueChanges(events?: ChildEvent[]): Observable<T[]>;
snapshotChanges(events?: ChildEvent[]): Observable<SnapshotAction[]>;
stateChanges(events?: ChildEvent[]): Observable<SnapshotAction>;
auditTrail(events?: ChildEvent[]): Observable<SnapshotAction[]>;
Expand All @@ -17,7 +17,7 @@ export interface AngularFireList<T> {

export interface AngularFireObject<T> {
query: DatabaseQuery;
valueChanges<T>(): Observable<T | null>;
valueChanges(): Observable<T | null>;
snapshotChanges(): Observable<SnapshotAction>;
update(data: Partial<T>): Promise<void>;
set(data: T): Promise<void>;
Expand Down

0 comments on commit 10afd64

Please sign in to comment.