@comfyorg/comfyui-frontend-types 1.15.0 → 1.15.2

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 +9 -5
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -525,7 +525,7 @@ export declare class ComfyApp {
525
525
  getRandParam(): string;
526
526
  static onClipspaceEditorSave(): void;
527
527
  static onClipspaceEditorClosed(): void;
528
- static copyToClipspace(node: any): void;
528
+ static copyToClipspace(node: LGraphNode): void;
529
529
  static pasteFromClipspace(node: LGraphNode): void;
530
530
  /**
531
531
  * Set up the app on the page
@@ -555,14 +555,14 @@ export declare class ComfyApp {
555
555
  output: ComfyApiWorkflow;
556
556
  }>;
557
557
  queuePrompt(number: number, batchCount?: number): Promise<boolean>;
558
- showErrorOnFileLoad(file: any): void;
558
+ showErrorOnFileLoad(file: File): void;
559
559
  /**
560
560
  * Loads workflow data from the specified file
561
561
  * @param {File} file
562
562
  */
563
- handleFile(file: any): Promise<void>;
564
- isApiJson(data: any): boolean;
565
- loadApiJson(apiData: any, fileName: string): void;
563
+ handleFile(file: File): Promise<void>;
564
+ isApiJson(data: unknown): boolean;
565
+ loadApiJson(apiData: ComfyApiWorkflow, fileName: string): void;
566
566
  /**
567
567
  * Registers a Comfy web extension with the app
568
568
  * @param {ComfyExtension} extension
@@ -1742,6 +1742,10 @@ export declare class ComfyApp {
1742
1742
  } | undefined;
1743
1743
  };
1744
1744
  };
1745
+ showErrorDialog: (error: unknown, options?: {
1746
+ title?: string;
1747
+ errorType?: string;
1748
+ }) => void;
1745
1749
  prompt: ({ title, message, defaultValue }: {
1746
1750
  title: string;
1747
1751
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.15.0",
3
+ "version": "1.15.2",
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.11.0-2"
16
+ "@comfyorg/litegraph": "^0.11.2"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.5.13",