From 4dcee5ac8528699b0893ab4c4e93c819ad87221a Mon Sep 17 00:00:00 2001 From: ehesp Date: Tue, 27 Aug 2019 16:05:30 +0100 Subject: [PATCH] Add missing where type --- packages/firestore/lib/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/firestore/lib/index.d.ts b/packages/firestore/lib/index.d.ts index d987a885..fde68d27 100644 --- a/packages/firestore/lib/index.d.ts +++ b/packages/firestore/lib/index.d.ts @@ -1153,6 +1153,11 @@ export namespace Firestore { where(fieldPath: string | FieldPath, opStr: WhereFilterOp, value: any): Query; } + /** + * Filter conditions in a `Query.where()` clause are specified using the strings '<', '<=', '==', '>=', '>', and 'array-contains'. + */ + export type WhereFilterOp = '<' | '<=' | '==' | '>' | '>=' | 'array-contains'; + /** * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects representing the results of a query. The documents * can be accessed as an array via the `docs` property or enumerated using the `forEach` method. The number of documents