mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
[TS] Type various WidgetOption props (#3010)
This commit is contained in:
@@ -20,7 +20,6 @@ const zMultiSelectOption = z.object({
|
|||||||
export const zBaseInputOptions = z
|
export const zBaseInputOptions = z
|
||||||
.object({
|
.object({
|
||||||
default: z.any().optional(),
|
default: z.any().optional(),
|
||||||
/** @deprecated Group node uses this field. Remove when group node feature is removed. */
|
|
||||||
defaultInput: z.boolean().optional(),
|
defaultInput: z.boolean().optional(),
|
||||||
forceInput: z.boolean().optional(),
|
forceInput: z.boolean().optional(),
|
||||||
tooltip: z.string().optional(),
|
tooltip: z.string().optional(),
|
||||||
|
|||||||
13
src/types/litegraph-augmentation.d.ts
vendored
13
src/types/litegraph-augmentation.d.ts
vendored
@@ -26,6 +26,19 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
|
|||||||
* The minimum size of the node if the widget is present.
|
* The minimum size of the node if the widget is present.
|
||||||
*/
|
*/
|
||||||
minNodeSize?: Size
|
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 {
|
interface IBaseWidget {
|
||||||
|
|||||||
Reference in New Issue
Block a user