(value: unknown)
| 30 | } |
| 31 | |
| 32 | function asStringArray(value: unknown): string[] { |
| 33 | return Array.isArray(value) |
| 34 | ? value.filter((item): item is string => typeof item === "string") |
| 35 | : []; |
| 36 | } |
| 37 | |
| 38 | function readConfig(filePath: string): JsonObject | null { |
| 39 | if (!existsSync(filePath)) { |