Skip to content

Commit b94dfff

Browse files
committed
set query engine constructor to protected
1 parent 9aa2479 commit b94dfff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query/src/query.engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class QueryEngine<PREDICATES = never, INPUT = never> {
1111
private predicates: Array<QueryPredicate<string, any, INPUT>>;
1212
private _schema: z.ZodType<BasePredicates<PREDICATES>>;
1313

14-
private constructor(predicates: Array<QueryPredicate<string, any, INPUT>>) {
14+
protected constructor(predicates: Array<QueryPredicate<string, any, INPUT>>) {
1515
this.predicates = predicates;
1616
// Build schema once in constructor instead of rebuilding on every access
1717
this._schema = querySchema(

0 commit comments

Comments
 (0)