Chat


How can I help you?

Line: 10:5: Object is possibly 'undefined'.Line: 12:5: Type '{ type: "switch"; state: true; }' is not assignable to type 'Readonly<SimulationModelConfig> | undefined'. Type '{ type: "switch"; state: true; }' is missing the following properties from type 'Readonly<SwitchSimulationModelConfig>': map_input_to_terminal_uid, map_output_to_terminal_uidLine: 18:5: Type '{ type: "switch"; state: false; }' is not assignable to type 'Readonly<SimulationModelConfig> | undefined'. Type '{ type: "switch"; state: false; }' is missing the following properties from type 'Readonly<SwitchSimulationModelConfig>': map_input_to_terminal_uid, map_output_to_terminal_uidLine: 28:13: Type '{ type: "switch"; state: true; }' is not assignable to type 'Readonly<SimulationModelConfig> | undefined'. Type '{ type: "switch"; state: true; }' is missing the following properties from type 'Readonly<SwitchSimulationModelConfig>': map_input_to_terminal_uid, map_output_to_terminal_uidLine: 34:13: Type '{ type: "switch"; state: false; }' is not assignable to type 'Readonly<SimulationModelConfig> | undefined'. Type '{ type: "switch"; state: false; }' is missing the following properties from type 'Readonly<SwitchSimulationModelConfig>': map_input_to_terminal_uid, map_output_to_terminal_uid

SPST Switch