@comfyorg/comfyui-frontend-types 1.5.6 → 1.5.8
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.
- package/index.d.ts +44 -18
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -372,6 +372,7 @@ export declare class ComfyApp {
|
|
|
372
372
|
static open_maskeditor: any;
|
|
373
373
|
static clipspace_return_node: any;
|
|
374
374
|
vueAppReady: boolean;
|
|
375
|
+
api: ComfyApi;
|
|
375
376
|
ui: ComfyUI;
|
|
376
377
|
extensions: ComfyExtension[];
|
|
377
378
|
extensionManager: ExtensionManager;
|
|
@@ -686,11 +687,13 @@ export declare class ComfyApp {
|
|
|
686
687
|
[key: string]: any;
|
|
687
688
|
}
|
|
688
689
|
|
|
689
|
-
declare
|
|
690
|
+
declare type ComfyInputsSpec = z.infer<typeof zComfyInputsSpec>;
|
|
691
|
+
|
|
692
|
+
declare class ComfyInputsSpec_2 {
|
|
690
693
|
required: Record<string, BaseInputSpec>;
|
|
691
694
|
optional: Record<string, BaseInputSpec>;
|
|
692
695
|
hidden?: Record<string, any>;
|
|
693
|
-
constructor(obj:
|
|
696
|
+
constructor(obj: ComfyInputsSpec);
|
|
694
697
|
private static transformInputSpecRecord;
|
|
695
698
|
private static isInputSpec;
|
|
696
699
|
private static transformSingleInputSpec;
|
|
@@ -698,8 +701,6 @@ export declare class ComfyApp {
|
|
|
698
701
|
getInput(name: string): BaseInputSpec | undefined;
|
|
699
702
|
}
|
|
700
703
|
|
|
701
|
-
declare type ComfyInputsSpec_2 = z.infer<typeof zComfyInputsSpec>;
|
|
702
|
-
|
|
703
704
|
declare class ComfyList {
|
|
704
705
|
#private;
|
|
705
706
|
element: HTMLDivElement;
|
|
@@ -715,21 +716,42 @@ export declare class ComfyApp {
|
|
|
715
716
|
|
|
716
717
|
declare type ComfyNodeDef = z.infer<typeof zComfyNodeDef>;
|
|
717
718
|
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
719
|
+
declare class ComfyNodeDefImpl implements ComfyNodeDef {
|
|
720
|
+
readonly name: string;
|
|
721
|
+
readonly display_name: string;
|
|
722
|
+
/**
|
|
723
|
+
* Category is not marked as readonly as the bookmark system
|
|
724
|
+
* needs to write to it to assign a node to a custom folder.
|
|
725
|
+
*/
|
|
725
726
|
category: string;
|
|
726
|
-
python_module: string;
|
|
727
|
-
description: string;
|
|
728
|
-
deprecated: boolean;
|
|
729
|
-
experimental: boolean;
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
727
|
+
readonly python_module: string;
|
|
728
|
+
readonly description: string;
|
|
729
|
+
readonly deprecated: boolean;
|
|
730
|
+
readonly experimental: boolean;
|
|
731
|
+
readonly output_node: boolean;
|
|
732
|
+
/**
|
|
733
|
+
* @deprecated Use `inputs` instead
|
|
734
|
+
*/
|
|
735
|
+
readonly input: ComfyInputsSpec;
|
|
736
|
+
/**
|
|
737
|
+
* @deprecated Use `outputs` instead
|
|
738
|
+
*/
|
|
739
|
+
readonly output: ComfyOutputTypesSpec;
|
|
740
|
+
/**
|
|
741
|
+
* @deprecated Use `outputs[n].is_list` instead
|
|
742
|
+
*/
|
|
743
|
+
readonly output_is_list?: boolean[];
|
|
744
|
+
/**
|
|
745
|
+
* @deprecated Use `outputs[n].name` instead
|
|
746
|
+
*/
|
|
747
|
+
readonly output_name?: string[];
|
|
748
|
+
/**
|
|
749
|
+
* @deprecated Use `outputs[n].tooltip` instead
|
|
750
|
+
*/
|
|
751
|
+
readonly output_tooltips?: string[];
|
|
752
|
+
readonly inputs: ComfyInputsSpec_2;
|
|
753
|
+
readonly outputs: ComfyOutputsSpec;
|
|
754
|
+
readonly nodeSource: NodeSource;
|
|
733
755
|
constructor(obj: ComfyNodeDef);
|
|
734
756
|
private static transformOutputSpec;
|
|
735
757
|
get nodePath(): string;
|
|
@@ -755,6 +777,8 @@ export declare class ComfyApp {
|
|
|
755
777
|
get all(): ComfyOutputSpec[];
|
|
756
778
|
}
|
|
757
779
|
|
|
780
|
+
declare type ComfyOutputTypesSpec = z.infer<typeof zComfyOutputTypesSpec>;
|
|
781
|
+
|
|
758
782
|
declare class ComfyPopup extends EventTarget {
|
|
759
783
|
#private;
|
|
760
784
|
element: HTMLElement;
|
|
@@ -3168,6 +3192,8 @@ export declare class ComfyApp {
|
|
|
3168
3192
|
experimental?: boolean;
|
|
3169
3193
|
}>;
|
|
3170
3194
|
|
|
3195
|
+
declare const zComfyOutputTypesSpec: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
3196
|
+
|
|
3171
3197
|
/** Schema version 0.4 */
|
|
3172
3198
|
declare const zComfyWorkflow: z.ZodObject<{
|
|
3173
3199
|
last_node_id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comfyorg/comfyui-frontend-types",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
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.
|
|
16
|
+
"@comfyorg/litegraph": "^0.8.44"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.4.31",
|