Add helper
This commit is contained in:
parent
ab54218692
commit
24463bd387
|
@ -28,6 +28,12 @@ export enum LogicalOperator {
|
||||||
OR = "$or",
|
OR = "$or",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function isLogicalSearchOperator(
|
||||||
|
value: string
|
||||||
|
): value is LogicalOperator {
|
||||||
|
return value === LogicalOperator.AND || value === LogicalOperator.OR
|
||||||
|
}
|
||||||
|
|
||||||
export type SearchFilterOperator =
|
export type SearchFilterOperator =
|
||||||
| BasicOperator
|
| BasicOperator
|
||||||
| ArrayOperator
|
| ArrayOperator
|
||||||
|
|
Loading…
Reference in New Issue