* Validates an array of item configurations (recursive)
(items: any[])
| 1123 | * Validates an array of item configurations (recursive) |
| 1124 | */ |
| 1125 | function validateItemConfigs(items: any[]): ItemConfig[] { |
| 1126 | if (!Array.isArray(items)) { |
| 1127 | throw new Error('Configuration content must be an array'); |
| 1128 | } |
| 1129 | |
| 1130 | return items.map((item, index) => validateItemConfig(item, index)); |
| 1131 | } |
| 1132 | |
| 1133 | /** |
| 1134 | * Validates a single item configuration (component or layout item) |
no test coverage detected