export function mergeMatrixQaTopologySpecs(specs: MatrixQaTopologySpec[]): MatrixQaTopologySpec { const first = specs[0]; if (!first) { thrownew Error("Matrix QA topology merge requires at least one spec");
}
const roomByKey = new Map<string, MatrixQaTopologyRoomSpec>(); for (const spec of specs) { if (spec.defaultRoomKey !== first.defaultRoomKey) { thrownew Error(
`Matrix QA topology default room mismatch: ${spec.defaultRoomKey} !== ${first.defaultRoomKey}`,
);
} for (const room of spec.rooms) { const existing = roomByKey.get(room.key); if (!existing) {
roomByKey.set(room.key, room); continue;
} if (!matrixQaRoomSpecsEqual(existing, room)) { thrownew Error(`Matrix QA topology room "${room.key}" has conflicting definitions`);
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.