mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-21 19:11:34 +08:00
Merge pull request #1018 from awmichel/fix-where-fieldpath-typing
Typing Fix for Firestore Query `where` Function
This commit is contained in:
4
lib/index.d.ts
vendored
4
lib/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user