Merge pull request #1018 from awmichel/fix-where-fieldpath-typing

Typing Fix for Firestore Query `where` Function
This commit is contained in:
Michael Diarmid
2018-04-25 06:17:31 +01:00
committed by GitHub

4
lib/index.d.ts vendored
View File

@@ -1502,7 +1502,7 @@ declare module "react-native-firebase" {
startAfter(...varargs: any[]): Query;
startAt(snapshot: DocumentSnapshot): Query;
startAt(...varargs: any[]): Query;
where(fieldPath: string, op: Types.QueryOperator, value: any): Query;
where(fieldPath: string | FieldPath, op: Types.QueryOperator, value: any): Query;
}
interface DocumentChange {
@@ -1598,7 +1598,7 @@ declare module "react-native-firebase" {
startAfter(...varargs: any[]): Query;
startAt(snapshot: DocumentSnapshot): Query;
startAt(...varargs: any[]): Query;
where(fieldPath: string, op: Types.QueryOperator, value: any): Query;
where(fieldPath: string | FieldPath, op: Types.QueryOperator, value: any): Query;
}
namespace Query {
interface NativeFieldPath {