(value: unknown)
| 312 | } |
| 313 | |
| 314 | function readStringList(value: unknown): string[] { |
| 315 | if (Array.isArray(value)) { |
| 316 | return value |
| 317 | .map((entry) => readString(entry)) |
| 318 | .filter((entry): entry is string => typeof entry === "string"); |
| 319 | } |
| 320 | const single = readString(value); |
| 321 | return single ? [single] : []; |
| 322 | } |
| 323 | |
| 324 | function sanitizeForPathSegment(value: string): string { |
| 325 | return value |
no test coverage detected