[NodeDef] Add documentation on widgetType

This commit is contained in:
Austin Mroz 2025-04-23 18:05:48 -05:00
parent 11b68ebd22
commit 4f471040fc
No known key found for this signature in database

View File

@ -120,6 +120,9 @@ class InputTypeOptions(TypedDict):
Available from frontend v1.17.5 Available from frontend v1.17.5
Ref: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3548 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.
https://github.com/Comfy-Org/ComfyUI_frontend/pull/3550"""
# class InputTypeNumber(InputTypeOptions): # class InputTypeNumber(InputTypeOptions):
# default: float | int # default: float | int
min: NotRequired[float] min: NotRequired[float]