Merge pull request #1018 from awmichel/fix-where-fieldpath-typing
Typing Fix for Firestore Query `where` Function
This commit is contained in:
commit
9914dd1ea4
|
@ -1502,7 +1502,7 @@ declare module "react-native-firebase" {
|
||||||
startAfter(...varargs: any[]): Query;
|
startAfter(...varargs: any[]): Query;
|
||||||
startAt(snapshot: DocumentSnapshot): Query;
|
startAt(snapshot: DocumentSnapshot): Query;
|
||||||
startAt(...varargs: any[]): 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 {
|
interface DocumentChange {
|
||||||
|
@ -1598,7 +1598,7 @@ declare module "react-native-firebase" {
|
||||||
startAfter(...varargs: any[]): Query;
|
startAfter(...varargs: any[]): Query;
|
||||||
startAt(snapshot: DocumentSnapshot): Query;
|
startAt(snapshot: DocumentSnapshot): Query;
|
||||||
startAt(...varargs: any[]): 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 {
|
namespace Query {
|
||||||
interface NativeFieldPath {
|
interface NativeFieldPath {
|
||||||
|
|
Loading…
Reference in New Issue