Skip to content

Commit 8a9438b

Browse files
authored
Merge pull request #13 from VirtusLab-Open-Source/fix/db-queries
fix: db queries
2 parents b439b56 + 19ece5d commit 8a9438b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

types/core.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,15 @@ type ContainsCaseInsensitiveWhereOperator = { $containsi: string };
166166
type NotContainsCaseInsensitiveWhereOperator = { $notContainsi: string };
167167
type StartsWithWhereOperator = { $startsWith: string };
168168
type EndsWithWhereOperator = { $endsWith: string };
169-
type EndsWithWhereOperator = { $endsWith: string };
170169
type IsNullWhereOperator = { $null: boolean };
171170
type IsNotNullWhereOperator = { $notNull: boolean };
172171
type NotWhereOperator<TKey extends string, TValue> = {
173172
$not: {
174173
[TKey]: [TValue];
175174
};
176175
};
177-
type AndWhereOperator<T> = { $and: T[] };
178-
type OrWhereOperator<T> = { $or: T[] };
176+
type AndWhereOperator<T> = { $and: Partial<T>[] };
177+
type OrWhereOperator<T> = { $or: Partial<T>[] };
179178

180179
type WhereOperator<T = unknown> =
181180
| T

0 commit comments

Comments
 (0)