[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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]