MCPcopy Index your code
hub / github.com/compiler-explorer/compiler-explorer / validateItemConfigs

Function validateItemConfigs

static/components.ts:1125–1131  ·  view source on GitHub ↗

* Validates an array of item configurations (recursive)

(items: any[])

Source from the content-addressed store, hash-verified

1123 * Validates an array of item configurations (recursive)
1124 */
1125function 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)

Callers 2

fromGoldenLayoutConfigFunction · 0.85
validateLayoutItemFunction · 0.85

Calls 1

validateItemConfigFunction · 0.85

Tested by

no test coverage detected