(value: MatchCriteriaValue | undefined)
| 129 | } |
| 130 | |
| 131 | function criteriaToString(value: MatchCriteriaValue | undefined): string | undefined { |
| 132 | if (typeof value === "string") { |
| 133 | return value; |
| 134 | } |
| 135 | |
| 136 | if (Array.isArray(value)) { |
| 137 | return value[0]?.val; |
| 138 | } |
| 139 | |
| 140 | return undefined; |
| 141 | } |
| 142 | |
| 143 | function criteriaToStringArray(value: MatchCriteriaValue | undefined): string[] { |
| 144 | if (typeof value === "string") { |
no outgoing calls
no test coverage detected