[CodeHealth] Simplify code as follow-up to #4354 (#4400)

This commit is contained in:
filtered
2025-07-10 06:08:33 +10:00
committed by GitHub
parent 22c70d5d1b
commit 834ac3ea61
4 changed files with 52 additions and 31 deletions

View File

@@ -65,7 +65,9 @@ export class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
/**
* @deprecated Use `settingStore.getDefaultValue` instead.
*/
getSettingDefaultValue<K extends keyof Settings>(id: K): Settings[K] {
getSettingDefaultValue<K extends keyof Settings>(
id: K
): Settings[K] | undefined {
return useSettingStore().getDefaultValue(id)
}