Skip to content

Commit

Permalink
fix: add missing generics on query (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chen committed Feb 6, 2020
1 parent ad1c459 commit c5b9442
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/firestore.d.ts
Expand Up @@ -1022,7 +1022,7 @@ declare namespace FirebaseFirestore {
*
* @return A Promise that will be resolved with the results of the Query.
*/
get(): Promise<QuerySnapshot>;
get(): Promise<QuerySnapshot<T>>;

/*
* Executes the query and returns the results as Node Stream.
Expand All @@ -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<T>) => void,
onError?: (error: Error) => void) : () => void;

/**
Expand All @@ -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<T>): boolean;

/**
* Applies a custom data converter to this Query, allowing you to use your
Expand Down

0 comments on commit c5b9442

Please sign in to comment.