Skip to content

Commit 289e6be

Browse files
committed
fix(firestore): make Constraint classes abstract
1 parent 088b4cb commit 289e6be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/firestore/lib/modular/query.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type QueryConstraintType =
2121
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
2222
* to a Firestore query.
2323
*/
24-
export class AppliableConstraint {
24+
export abstract class AppliableConstraint {
2525
/**
2626
* Takes the provided {@link Query} and returns a copy of the {@link Query} with this
2727
* {@link AppliableConstraint} applied.
@@ -39,9 +39,9 @@ export class AppliableConstraint {
3939
* can then be passed to {@link (query:1)} to create a new query instance that
4040
* also contains this `QueryConstraint`.
4141
*/
42-
export class QueryConstraint extends AppliableConstraint {
42+
export abstract class QueryConstraint extends AppliableConstraint {
4343
/** The type of this query constraint */
44-
readonly type: QueryConstraintType;
44+
abstract readonly type: QueryConstraintType;
4545

4646
/**
4747
* Takes the provided {@link Query} and returns a copy of the {@link Query} with this

0 commit comments

Comments
 (0)