@comfyorg/comfyui-frontend-types 1.10.2 → 1.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +14 -1
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -33596,13 +33596,26 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
33596
33596
  onRemove?: () => void
33597
33597
  beforeQueued?: () => unknown
33598
33598
  afterQueued?: () => unknown
33599
- serializeValue?: (node: LGraphNode, index: number) => Promise<unknown>
33599
+ serializeValue?: (
33600
+ node: LGraphNode,
33601
+ index: number
33602
+ ) => Promise<unknown> | unknown
33600
33603
 
33601
33604
  /**
33602
33605
  * If the widget supports dynamic prompts, this will be set to true.
33603
33606
  * See extensions/core/dynamicPrompts.ts
33604
33607
  */
33605
33608
  dynamicPrompts?: boolean
33609
+
33610
+ /**
33611
+ * Widget conversion fields
33612
+ */
33613
+ origType?: string
33614
+ origComputeSize?: (width: number) => Size
33615
+ origSerializeValue?: (
33616
+ node: LGraphNode,
33617
+ index: number
33618
+ ) => Promise<unknown> | unknown
33606
33619
  }
33607
33620
  }
33608
33621
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"
@@ -13,7 +13,7 @@
13
13
  "description": "TypeScript definitions for @comfyorg/comfyui-frontend",
14
14
  "license": "GPL-3.0-only",
15
15
  "dependencies": {
16
- "@comfyorg/litegraph": "^0.8.81"
16
+ "@comfyorg/litegraph": "^0.8.83"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.5.13",