From c5b9442e6620e59e5563ffaf210ad493ec5ed9b2 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Thu, 6 Feb 2020 15:05:44 -0800 Subject: [PATCH] fix: add missing generics on query (#917) --- types/firestore.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/firestore.d.ts b/types/firestore.d.ts index e8b4ee060..e50671e69 100644 --- a/types/firestore.d.ts +++ b/types/firestore.d.ts @@ -1022,7 +1022,7 @@ declare namespace FirebaseFirestore { * * @return A Promise that will be resolved with the results of the Query. */ - get(): Promise; + get(): Promise>; /* * Executes the query and returns the results as Node Stream. @@ -1041,7 +1041,7 @@ declare namespace FirebaseFirestore { * @return An unsubscribe function that can be called to cancel * the snapshot listener. */ - onSnapshot(onNext: (snapshot: QuerySnapshot) => void, + onSnapshot(onNext: (snapshot: QuerySnapshot) => void, onError?: (error: Error) => void) : () => void; /** @@ -1050,7 +1050,7 @@ declare namespace FirebaseFirestore { * @param other The `Query` to compare against. * @return true if this `Query` is equal to the provided one. */ - isEqual(other: Query): boolean; + isEqual(other: Query): boolean; /** * Applies a custom data converter to this Query, allowing you to use your