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
commit 9914dd1ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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 {