diff --git a/src/conductor.ts b/src/conductor.ts index 78cc547361..e2a785f96d 100644 --- a/src/conductor.ts +++ b/src/conductor.ts @@ -351,7 +351,7 @@ export class Conductor extends EventEmitter { let getFilteredLayers = (layers: TimelineState['LLayers'], device: Device) => { let filteredState = {} _.each(layers, (o: TimelineResolvedObject, layerId: string) => { - const oExt = o as TimelineResolvedObjectExtended + const oExt: TimelineResolvedObjectExtended = o let mapping: Mapping = this._mapping[o.LLayer + ''] if (!mapping && oExt.originalLLayer) { mapping = this._mapping[oExt.originalLLayer] diff --git a/src/devices/atem.ts b/src/devices/atem.ts index abc32ab7c9..3ce14a1b91 100644 --- a/src/devices/atem.ts +++ b/src/devices/atem.ts @@ -186,9 +186,9 @@ export class AtemDevice extends DeviceWithState { _.each(sortedLayers, ({ tlObject, layerName }) => { const tlObjectExt = tlObject as TimelineResolvedObjectExtended const content = tlObject.resolved || tlObject.content - let mapping = this.mapping[layerName] as MappingAtem + let mapping = this.mapping[layerName] as MappingAtem // tslint:disable-line if (!mapping && tlObjectExt.originalLLayer) { - mapping = this.mapping[tlObjectExt.originalLLayer] as MappingAtem + mapping = this.mapping[tlObjectExt.originalLLayer] as MappingAtem // tslint:disable-line } if (mapping) { diff --git a/src/devices/casparCG.ts b/src/devices/casparCG.ts index ce542f2449..d7bdad0d2b 100644 --- a/src/devices/casparCG.ts +++ b/src/devices/casparCG.ts @@ -216,6 +216,7 @@ export class CasparCGDevice extends DeviceWithState { const caspar = new StateNS.State() _.each(timelineState.LLayers, (layer: TimelineResolvedObject, layerName: string) => { + // tslint:disable-next-line const layerExt = layer as TimelineResolvedObjectExtended let foundMapping: Mapping = this.mapping[layerName] if (!foundMapping && layerExt.isBackground && layerExt.originalLLayer) { @@ -308,6 +309,7 @@ export class CasparCGDevice extends DeviceWithState { stateLayer = l } else if (layer.content.type === TimelineContentTypeCasparCg.ROUTE) { if (layer.content.attributes.LLayer) { + // tslint:disable-next-line let routeMapping = this.mapping[layer.content.attributes.LLayer] as MappingCasparCG if (routeMapping) { layer.content.attributes.channel = routeMapping.channel diff --git a/src/devices/httpSend.ts b/src/devices/httpSend.ts index 8396ca6b4f..d8035af37f 100644 --- a/src/devices/httpSend.ts +++ b/src/devices/httpSend.ts @@ -151,7 +151,7 @@ export class HttpSendDevice extends DeviceWithState { // added! commands.push({ commandName: 'added', - content: newLayer.content as HttpSendCommandContent, + content: newLayer.content as HttpSendCommandContent, // tslint:disable-line context: `added: ${newLayer.id}` }) } else { @@ -160,7 +160,7 @@ export class HttpSendDevice extends DeviceWithState { // changed! commands.push({ commandName: 'changed', - content: newLayer.content as HttpSendCommandContent, + content: newLayer.content as HttpSendCommandContent, // tslint:disable-line context: `changed: ${newLayer.id}` }) } @@ -173,7 +173,7 @@ export class HttpSendDevice extends DeviceWithState { // removed! commands.push({ commandName: 'removed', - content: oldLayer.content as HttpSendCommandContent, + content: oldLayer.content as HttpSendCommandContent, // tslint:disable-line context: `removed: ${oldLayer.id}` }) } diff --git a/src/devices/hyperdeck.ts b/src/devices/hyperdeck.ts index 253c1f78b9..2af1bb51c7 100644 --- a/src/devices/hyperdeck.ts +++ b/src/devices/hyperdeck.ts @@ -173,7 +173,7 @@ export class HyperdeckDevice extends DeviceWithState { _.each(sortedLayers, ({ tlObject, layerName }) => { const content = tlObject.resolved || tlObject.content - const mapping = this.mapping[layerName] as MappingHyperdeck + const mapping = this.mapping[layerName] as MappingHyperdeck // tslint:disable-line if (mapping) { switch (mapping.mappingType) { diff --git a/src/devices/lawo.ts b/src/devices/lawo.ts index 33b64f52f9..edc43735d2 100644 --- a/src/devices/lawo.ts +++ b/src/devices/lawo.ts @@ -220,7 +220,7 @@ export class LawoDevice extends DeviceWithState { const lawoState: LawoState = {} _.each(state.LLayers, (tlObject: TimelineObjLawo, layerName: string) => { - const mapping: MappingLawo | undefined = this.mapping[layerName] as MappingLawo + const mapping: MappingLawo | undefined = this.mapping[layerName] as MappingLawo // tslint:disable-line if (mapping && mapping.identifier && mapping.device === DeviceType.LAWO) { if (tlObject.content.type === TimelineContentTypeLawo.SOURCE) { diff --git a/src/devices/panasonicPTZ.ts b/src/devices/panasonicPTZ.ts index f05bb2c8b5..f1c766f3f8 100644 --- a/src/devices/panasonicPTZ.ts +++ b/src/devices/panasonicPTZ.ts @@ -118,7 +118,7 @@ export class PanasonicPtzDevice extends DeviceWithState { const ptzState: PanasonicPtzState = this._getDefaultState() _.each(state.LLayers, (tlObject: TimelineResolvedObject, layerName: string) => { - const mapping: MappingPanasonicPtz | undefined = this.mapping[layerName] as MappingPanasonicPtz + const mapping: MappingPanasonicPtz | undefined = this.mapping[layerName] as MappingPanasonicPtz // tslint:disable-line if (mapping && mapping.device === DeviceType.PANASONIC_PTZ) { if (mapping.mappingType === MappingPanasonicPtzType.PRESET) { let tlObjectSource = tlObject as TimelineResolvedObject & TimelineObjPanasonicPtzPreset