1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

[NodeDef] Add documentation on widgetType (#7768)

* [NodeDef] Add documentation on widgetType

* Document required version for widgetType
This commit is contained in:
AustinMroz
2025-04-25 12:35:07 -05:00
committed by GitHub
parent f935d42d8e
commit 78992c4b25

View File

@@ -120,6 +120,10 @@ class InputTypeOptions(TypedDict):
Available from frontend v1.17.5
Ref: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3548
"""
widgetType: NotRequired[str]
"""Specifies a type to be used for widget initialization if different from the input type.
Available from frontend v1.18.0
https://github.com/Comfy-Org/ComfyUI_frontend/pull/3550"""
# class InputTypeNumber(InputTypeOptions):
# default: float | int
min: NotRequired[float]