Skip to content

Commit 78992c4

Browse files
authored
[NodeDef] Add documentation on widgetType (comfyanonymous#7768)
* [NodeDef] Add documentation on widgetType * Document required version for widgetType
1 parent f935d42 commit 78992c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

comfy/comfy_types/node_typing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ class InputTypeOptions(TypedDict):
120120
Available from frontend v1.17.5
121121
Ref: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3548
122122
"""
123+
widgetType: NotRequired[str]
124+
"""Specifies a type to be used for widget initialization if different from the input type.
125+
Available from frontend v1.18.0
126+
https://github.com/Comfy-Org/ComfyUI_frontend/pull/3550"""
123127
# class InputTypeNumber(InputTypeOptions):
124128
# default: float | int
125129
min: NotRequired[float]

0 commit comments

Comments
 (0)