From 42737173e38c3dc6fb33167bfa4ae73b4e1c98f4 Mon Sep 17 00:00:00 2001 From: Pedro Gabriel Date: Fri, 9 Mar 2018 19:20:20 -0300 Subject: [PATCH] Firebase not suport this implementation In the latests version of firebase, the firebase.Promise<> not working more. --- src/database/angularfire2-interfaces.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/database/angularfire2-interfaces.ts b/src/database/angularfire2-interfaces.ts index 272880e..cc082a3 100644 --- a/src/database/angularfire2-interfaces.ts +++ b/src/database/angularfire2-interfaces.ts @@ -2,10 +2,10 @@ import * as firebase from 'firebase/app'; import { Observable } from 'rxjs/Observable'; export interface FirebaseOperationCases { - stringCase: () => firebase.Promise; - firebaseCase?: () => firebase.Promise; - snapshotCase?: () => firebase.Promise; - unwrappedSnapshotCase?: () => firebase.Promise; + stringCase: () => Promise; + firebaseCase?: () => Promise; + snapshotCase?: () => Promise; + unwrappedSnapshotCase?: () => Promise; } export interface AFUnwrappedDataSnapshot { @@ -85,4 +85,4 @@ export type DatabaseSnapshot = firebase.database.DataSnapshot; export type DatabaseReference = firebase.database.Reference; export type DatabaseQuery = firebase.database.Query; export type QueryReference = DatabaseReference | DatabaseQuery; -export type PathReference = QueryReference | string; \ No newline at end of file +export type PathReference = QueryReference | string;