(value: unknown)
| 248 | } |
| 249 | |
| 250 | function parseOptionalStringArray(value: unknown): string[] | undefined { |
| 251 | if (!Array.isArray(value)) { |
| 252 | return undefined; |
| 253 | } |
| 254 | |
| 255 | return value.filter((item): item is string => typeof item === "string"); |
| 256 | } |
| 257 | function parseOptionalStringRecord(value: unknown): Record<string, string> | undefined { |
| 258 | if (!value || typeof value !== "object" || Array.isArray(value)) { |
| 259 | return undefined; |
no outgoing calls
no test coverage detected