* Validates an operator to ensure it's in the allowed list. * * @param operator - The operator to validate * @throws {TableQueryValidationError} if operator is not allowed
(operator: string)
| 253 | * @throws {TableQueryValidationError} if operator is not allowed |
| 254 | */ |
| 255 | function validateOperator(operator: string): void { |
| 256 | if (!ALLOWED_OPERATORS.has(operator)) { |
| 257 | throw new TableQueryValidationError( |
| 258 | `Invalid operator "${operator}". Allowed operators: ${Array.from(ALLOWED_OPERATORS).join(', ')}` |
| 259 | ) |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Validates that a range-operator value matches its column's expected JS type |
no test coverage detected