@@ -603,110 +603,111 @@ export interface KlipperPrinterBeaconState {
603
603
export interface KlipperPrinterConfig extends Record < string , Record < string , string | undefined > | undefined > {
604
604
}
605
605
606
- type KlipperPrinterSettingsBaseType = {
607
- [ key in ExtruderKey ] ?: KlipperPrinterExtruderSettings
608
- }
606
+ type KlipperPrinterSettingsBaseType =
607
+ Partial < {
608
+ [ key in ExtruderKey ] : KlipperPrinterExtruderSettings ;
609
+ } & {
610
+ mcu : KlipperPrinterMcuSettings ;
609
611
610
- export interface KlipperPrinterSettings extends KlipperPrinterSettingsBaseType {
611
- [ key : string ] : Record < string , any > | undefined ;
612
+ [ key : `mcu ${Lowercase < string > } `] : KlipperPrinterMcuSettings ;
612
613
613
- mcu ?: KlipperPrinterMcuSettings ;
614
+ [ key : Lowercase < TmcKey > ] : KlipperPrinterTmcSettings ;
614
615
615
- [ key : `mcu ${ Lowercase < string > } ` ] : KlipperPrinterMcuSettings | undefined ;
616
+ fan : KlipperPrinterFanSettings ;
616
617
617
- [ key : Lowercase < TmcKey > ] : KlipperPrinterTmcSettings ;
618
+ [ key : `heater_fan ${ Lowercase < string > } ` ] : KlipperPrinterHeaterFanSettings ;
618
619
619
- fan ?: KlipperPrinterFanSettings ;
620
+ [ key : `controller_fan ${ Lowercase < string > } ` ] : KlipperPrinterControllerFanSettings ;
620
621
621
- [ key : `heater_fan ${Lowercase < string > } `] : KlipperPrinterHeaterFanSettings | undefined ;
622
+ [ key : `gcode_button ${string } `] : KlipperPrinterGcodeButtonSettings ;
622
623
623
- [ key : `controller_fan ${Lowercase < string > } `] : KlipperPrinterControllerFanSettings | undefined ;
624
+ [ key : `output_pin ${Lowercase < string > } `] : KlipperPrinterOutputPinSettings ;
624
625
625
- [ key : `gcode_button ${ string } `] : KlipperPrinterGcodeButtonSettings | undefined ;
626
+ [ key : `${ 'led' | 'neopixel' | 'dotstar' | 'pca9533' | 'pca9632' } ${ Lowercase < string > } `] : KlipperPrinterLedSettings ;
626
627
627
- [ key : `output_pin ${Lowercase < string > } `] : KlipperPrinterOutputPinSettings | undefined ;
628
+ [ key : `temperature_sensor ${Lowercase < string > } `] : KlipperPrinterTemperatureSensorSettings ;
628
629
629
- [ key : `${ 'led' | 'neopixel' | 'dotstar' | 'pca9533' | 'pca9632' } ${ Lowercase < string > } ` ] : KlipperPrinterLedSettings | undefined ;
630
+ safe_z_home : KlipperPrinterSafeZHomeSettings ;
630
631
631
- [ key : `temperature_sensor ${ Lowercase < string > } ` ] : KlipperPrinterTemperatureSensorSettings | undefined ;
632
+ z_tilt : KlipperPrinterZTiltSettings ;
632
633
633
- safe_z_home ?: KlipperPrinterSafeZHomeSettings ;
634
+ bed_mesh : KlipperPrinterBedMeshSettings ;
634
635
635
- z_tilt ?: KlipperPrinterZTiltSettings ;
636
+ board_pins : KlipperPrinterBoardPinsSettings ;
636
637
637
- bed_mesh ?: KlipperPrinterBedMeshSettings ;
638
+ [ key : ` bed_mesh ${ Lowercase < string > } ` ] : KlipperPrinterBedMeshModelSettings ;
638
639
639
- board_pins ?: KlipperPrinterBoardPinsSettings ;
640
+ bed_screws : KlipperPrinterBedScrewsSettings ;
640
641
641
- [ key : `bed_mesh ${ Lowercase < string > } ` ] : KlipperPrinterBedMeshModelSettings | undefined ;
642
+ screws_tilt_adjust : KlipperPrinterScrewsTiltAdjustSettings ;
642
643
643
- bed_screws ?: KlipperPrinterBedScrewsSettings ;
644
+ firmware_retraction : KlipperPrinterFirmwareRetractionSettings ;
644
645
645
- screws_tilt_adjust ?: KlipperPrinterScrewsTiltAdjustSettings ;
646
+ force_move : KlipperPrinterForceMoveSettings ;
646
647
647
- firmware_retraction ?: KlipperPrinterFirmwareRetractionSettings ;
648
+ gcode_arcs : KlipperPrinterGcodeArcsSettings ;
648
649
649
- force_move ?: KlipperPrinterForceMoveSettings ;
650
+ respond : KlipperPrinterRespondSettings ;
650
651
651
- gcode_arcs ?: KlipperPrinterGcodeArcsSettings ;
652
+ virtual_sdcard : KlipperPrinterVirtualSdcardSettings ;
652
653
653
- respond ?: KlipperPrinterRespondSettings ;
654
+ pause_resume : KlipperPrinterPauseResumeSettings ;
654
655
655
- virtual_sdcard ?: KlipperPrinterVirtualSdcardSettings ;
656
+ delta_calibrate : KlipperPrinterDeltaCalibrateSettings ;
656
657
657
- pause_resume ?: KlipperPrinterPauseResumeSettings ;
658
+ [ key : `gcode_macro ${ Lowercase < string > } ` ] : KlipperPrinterGcodeMacroSettings ;
658
659
659
- delta_calibrate ?: KlipperPrinterDeltaCalibrateSettings ;
660
+ heater_bed : KlipperPrinterHeaterBedSettings ;
660
661
661
- [ key : `gcode_macro ${Lowercase < string > } `] : KlipperPrinterGcodeMacroSettings | undefined ;
662
+ [ key : `verify_heater ${Lowercase < string > } `] : KlipperPrinterVerifyHeaterSettings ;
662
663
663
- heater_bed ?: KlipperPrinterHeaterBedSettings ;
664
+ probe : KlipperPrinterProbeSettings ;
664
665
665
- [ key : `verify_heater ${ Lowercase < string > } ` ] : KlipperPrinterVerifyHeaterSettings | undefined ;
666
+ bltouch : KlipperPrinterBltouchSettings ;
666
667
667
- probe ?: KlipperPrinterProbeSettings ;
668
+ smart_effector : KlipperPrinterSmartEffectorSettings ;
668
669
669
- bltouch ?: KlipperPrinterBltouchSettings ;
670
+ [ key : `probe_eddy_current ${ Lowercase < string > } ` ] : KlipperPrinterProbeEddyCurrentSettings ;
670
671
671
- smart_effector ?: KlipperPrinterSmartEffectorSettings ;
672
+ input_shaper : KlipperPrinterInputShaperSettings ;
672
673
673
- [ key : `probe_eddy_current ${ Lowercase < string > } ` ] : KlipperPrinterProbeEddyCurrentSettings | undefined ;
674
+ printer : KlipperPrinterPrinterSettings ;
674
675
675
- input_shaper ?: KlipperPrinterInputShaperSettings ;
676
+ [ key : `stepper_${ Lowercase < string > } ` ] : KlipperPrinterStepperSettings ;
676
677
677
- printer ?: KlipperPrinterPrinterSettings ;
678
+ [ key : `extruder_stepper ${ Lowercase < string > } ` ] : KlipperPrinterExtruderStepperSettings ;
678
679
679
- [ key : `stepper_${ Lowercase < string > } ` ] : KlipperPrinterStepperSettings | undefined ;
680
+ idle_timeout : KlipperPrinterIdleTimeoutSettings ;
680
681
681
- [ key : `extruder_stepper ${ Lowercase < string > } ` ] : KlipperPrinterExtruderStepperSettings | undefined ;
682
+ exclude_object : KlipperPrinterExcludeObjectSettings ;
682
683
683
- idle_timeout ?: KlipperPrinterIdleTimeoutSettings ;
684
+ [ key : `endstop_phase ${ Lowercase < string > } ` ] : KlipperPrinterEndstopPhaseSettings ;
684
685
685
- exclude_object ?: KlipperPrinterExcludeObjectSettings ;
686
+ [ key : `display_template ${ Lowercase < string > } ` ] : KlipperPrinterDisplayTemplateSettings ;
686
687
687
- [ key : `endstop_phase ${ Lowercase < string > } ` ] : KlipperPrinterEndstopPhaseSettings | undefined ;
688
+ load_cell : KlipperPrinterLoadCellSettings ;
688
689
689
- [ key : `display_template ${Lowercase < string > } `] : KlipperPrinterDisplayTemplateSettings | undefined ;
690
+ [ key : `load_cell ${Lowercase < string > } `] : KlipperPrinterLoadCellSettings ;
690
691
691
- load_cell ?: KlipperPrinterLoadCellSettings ;
692
+ // These keys are for kalico modules
692
693
693
- [ key : `load_cell ${ Lowercase < string > } ` ] : KlipperPrinterLoadCellSettings | undefined ;
694
+ danger_options : KalicoPrinterDangerOptionsSettings ;
694
695
695
- // These keys are for kalico modules
696
+ constants : KalicoPrinterConstantsSettings ;
696
697
697
- danger_options ?: KalicoPrinterDangerOptionsSettings ;
698
+ z_calibration : KalicoPrinterZCalibrationSettings ;
698
699
699
- constants ?: KalicoPrinterConstantsSettings ;
700
+ z_tilt_ng : KalicoPrinterZTiltNgSettings ;
700
701
701
- z_calibration ?: KalicoPrinterZCalibrationSettings ;
702
+ // These keys are for external modules
702
703
703
- z_tilt_ng ?: KalicoPrinterZTiltNgSettings ;
704
+ beacon : KlipperPrinterBeaconSettings ;
704
705
705
- // These keys are for external modules
706
-
707
- beacon ?: KlipperPrinterBeaconSettings ;
706
+ [ key : `beacon model ${Lowercase < string > } `] : KlipperPrinterBeaconModelSettings ;
707
+ } >
708
708
709
- [ key : `beacon model ${Lowercase < string > } `] : KlipperPrinterBeaconModelSettings | undefined ;
709
+ export interface KlipperPrinterSettings extends KlipperPrinterSettingsBaseType {
710
+ [ key : string ] : Record < string , any > | undefined ;
710
711
}
711
712
712
713
export interface KlipperPrinterMcuSettings {
0 commit comments