Skip to content

Commit b3bbeaf

Browse files
committed
Replace usage of an ambient const enum Precedence from CQB
These are no longer available in verbatim module syntax.
1 parent 2ac6158 commit b3bbeaf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/core/database/query/where-and-list.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import {
2-
type ParameterBag,
3-
Precedence,
4-
stringCons,
5-
WhereOp,
6-
} from 'cypher-query-builder';
1+
import { type ParameterBag, stringCons, WhereOp } from 'cypher-query-builder';
72
import { type AnyConditions } from 'cypher-query-builder/dist/typings/clauses/where-utils';
3+
import type { ValueOf } from 'type-fest';
84
import { exp, type ExpressionInput } from './cypher-expression';
95

6+
type Precedence = ValueOf<typeof Precedence>;
7+
const Precedence = { None: 0, Or: 1, Xor: 2, And: 3, Not: 4 } as const;
8+
109
export class WhereAndList extends WhereOp {
1110
constructor(public conditions: AnyConditions[]) {
1211
super();

0 commit comments

Comments
 (0)