Add helper

This commit is contained in:
Adria Navarro 2024-08-07 10:51:40 +02:00
parent ab54218692
commit 24463bd387
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ export enum LogicalOperator {
OR = "$or",
}
export function isLogicalSearchOperator(
value: string
): value is LogicalOperator {
return value === LogicalOperator.AND || value === LogicalOperator.OR
}
export type SearchFilterOperator =
| BasicOperator
| ArrayOperator