if (typeof raw === 'object') {
if (Array.isArray(obj['paths'])) {
const paths = (obj['paths'] as unknown[])
.filter(v => typeof v === 'string')
.map(v => v.trim())
.filter(v => v.length > 0);
const exclusive = obj['exclusive'] === true;
return { paths, exclusive };
}
}
return emptyComponentPathConfig;