diff --git a/src/schemas/nodeDefSchema.ts b/src/schemas/nodeDefSchema.ts index afe94a99a..486303698 100644 --- a/src/schemas/nodeDefSchema.ts +++ b/src/schemas/nodeDefSchema.ts @@ -20,7 +20,6 @@ const zMultiSelectOption = z.object({ export const zBaseInputOptions = z .object({ default: z.any().optional(), - /** @deprecated Group node uses this field. Remove when group node feature is removed. */ defaultInput: z.boolean().optional(), forceInput: z.boolean().optional(), tooltip: z.string().optional(), diff --git a/src/types/litegraph-augmentation.d.ts b/src/types/litegraph-augmentation.d.ts index 7854c95a8..b8239cb7e 100644 --- a/src/types/litegraph-augmentation.d.ts +++ b/src/types/litegraph-augmentation.d.ts @@ -26,6 +26,19 @@ declare module '@comfyorg/litegraph/dist/types/widgets' { * The minimum size of the node if the widget is present. */ minNodeSize?: Size + /** + * Whether the widget is optional. + */ + inputIsOptional?: boolean + /** + * Whether the widget is forced to be an input. + */ + forceInput?: boolean + /** + * Whether the widget defaults to input state. Can still be converted back + * to widget state. + */ + defaultInput?: boolean } interface IBaseWidget {