(value: unknown)
| 41 | } |
| 42 | |
| 43 | function dependencyMap(value: unknown): DependencyMap { |
| 44 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |
| 45 | return {} |
| 46 | } |
| 47 | return Object.fromEntries( |
| 48 | Object.entries(value).filter( |
| 49 | (entry): entry is [string, string] => typeof entry[1] === 'string' |
| 50 | ) |
| 51 | ) |
| 52 | } |
| 53 | |
| 54 | function stringArray(value: unknown): string[] { |
| 55 | if (!Array.isArray(value)) { |
no outgoing calls
no test coverage detected