@@ -5,15 +5,15 @@ import { getActiveRoutes, getRoutedMappings } from '@sofie-automation/meteor-lib
55
66type MappingExtWithOriginalName = MappingExt & { originalLayerName : string }
77type MappingsExtWithOriginalName = {
8- [ layerName : string ] : MappingExtWithOriginalName
8+ [ layerName : string ] : ReadonlyDeep < MappingExtWithOriginalName >
99}
1010export function buildMappingsToDeviceIdMap (
1111 routeSets : Record < string , StudioRouteSet > ,
1212 studioMappings : ReadonlyDeep < MappingsExt >
1313) : Map < string , PeripheralDeviceId [ ] > {
1414 // Map the expectedPackages onto their specified layer:
1515 const mappingsWithPackages : MappingsExtWithOriginalName = { }
16- for ( const [ layerName , mapping ] of Object . entries < MappingExt > ( studioMappings ) ) {
16+ for ( const [ layerName , mapping ] of Object . entries < ReadonlyDeep < MappingExt > > ( studioMappings ) ) {
1717 mappingsWithPackages [ layerName ] = {
1818 ...mapping ,
1919 originalLayerName : layerName ,
@@ -26,7 +26,7 @@ export function buildMappingsToDeviceIdMap(
2626
2727 // Compile the result
2828 const result = new Map < string , PeripheralDeviceId [ ] > ( )
29- for ( const item of Object . values < MappingExtWithOriginalName > ( routedMappings ) ) {
29+ for ( const item of Object . values < ReadonlyDeep < MappingExtWithOriginalName > > ( routedMappings ) ) {
3030 const key = item . originalLayerName
3131 const existing = result . get ( key )
3232 if ( existing ) {
0 commit comments