Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

[NodeDef] Add documentation on widgetType (#7768)

AustinMroz78992c4b25ce
diff --git a/comfy/comfy_types/node_typing.py b/comfy/comfy_types/node_typing.py
index 0bdda032e..4ceeb3468 100644
--- a/comfy/comfy_types/node_typing.py
+++ b/comfy/comfy_types/node_typing.py
@@ -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]