(expr: SimpleExpr)
| 77 | return Boolean(rawString.content); |
| 78 | }; |
| 79 | const validate = (expr: SimpleExpr): boolean => { |
| 80 | if (isConditionGroupExpr(expr)) return validateConditionGroup(expr); |
| 81 | if (isConditionExpr(expr)) return validateCondition(expr); |
| 82 | if (isRawStringExpr(expr)) return validateRawString(expr); |
| 83 | throw new Error(`unsupported expr '${JSON.stringify(expr)}'`); |
| 84 | }; |
| 85 | return validate(expr); |
| 86 | }; |
no test coverage detected