From 76ed46f419b5250bb344d83b97de7c9559b851f6 Mon Sep 17 00:00:00 2001 From: Tom Andersen Date: Thu, 14 Sep 2023 11:51:15 -0400 Subject: [PATCH] Fix running of tests. --- dev/src/filter.ts | 2 +- dev/src/reference.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/src/filter.ts b/dev/src/filter.ts index a53fc1b2f..7b50b1efb 100644 --- a/dev/src/filter.ts +++ b/dev/src/filter.ts @@ -23,7 +23,7 @@ import * as firestore from '@google-cloud/firestore'; * or {@link Filter#and} and can then be passed to {@link Query#where} * to create a new {@link Query} instance that also contains this `Filter`. */ -export abstract class Filter extends firestore.Filter { +export abstract class Filter { /** * Creates and returns a new [Filter]{@link Filter}, which can be * applied to [Query.where()]{@link Query#where}, [Filter.or()]{@link Filter#or}, diff --git a/dev/src/reference.ts b/dev/src/reference.ts index 8f692d5e6..cb950677f 100644 --- a/dev/src/reference.ts +++ b/dev/src/reference.ts @@ -1561,13 +1561,13 @@ export class Query< where(filter: firestore.Filter): Query; where( - fieldPathOrFilter: string | firestore.FieldPath | firestore.Filter, + fieldPathOrFilter: string | FieldPath | Filter, opStr?: firestore.WhereFilterOp, value?: unknown ): Query { let filter: firestore.Filter; - if (fieldPathOrFilter instanceof firestore.Filter) { + if (fieldPathOrFilter instanceof Filter) { filter = fieldPathOrFilter; } else { filter = Filter.where(fieldPathOrFilter, opStr!, value);