@comfyorg/comfyui-frontend-types 1.12.0 → 1.12.1
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 +19 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -220,6 +220,10 @@ export declare class ComfyApi extends EventTarget {
|
|
|
220
220
|
getWorkflowTemplates(): Promise<{
|
|
221
221
|
[customNodesName: string]: string[];
|
|
222
222
|
}>;
|
|
223
|
+
/**
|
|
224
|
+
* Gets the index of core workflow templates.
|
|
225
|
+
*/
|
|
226
|
+
getCoreWorkflowTemplates(): Promise<WorkflowTemplates[]>;
|
|
223
227
|
/**
|
|
224
228
|
* Gets a list of embedding names
|
|
225
229
|
*/
|
|
@@ -1054,6 +1058,15 @@ export declare class ComfyApp {
|
|
|
1054
1058
|
/** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
|
|
1055
1059
|
declare type SimpleApiEvents = keyof PickNevers<ApiEventTypes>;
|
|
1056
1060
|
|
|
1061
|
+
declare interface TemplateInfo {
|
|
1062
|
+
name: string;
|
|
1063
|
+
tutorialUrl?: string;
|
|
1064
|
+
mediaType: string;
|
|
1065
|
+
mediaSubtype: string;
|
|
1066
|
+
thumbnailVariant?: string;
|
|
1067
|
+
description: string;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1057
1070
|
declare type ToastManager = {
|
|
1058
1071
|
add(message: ToastMessageOptions): void;
|
|
1059
1072
|
remove(message: ToastMessageOptions): void;
|
|
@@ -1212,6 +1225,12 @@ export declare class ComfyApp {
|
|
|
1212
1225
|
|
|
1213
1226
|
declare type Widgets = Record<string, ComfyWidgetConstructor>;
|
|
1214
1227
|
|
|
1228
|
+
declare interface WorkflowTemplates {
|
|
1229
|
+
moduleName: string;
|
|
1230
|
+
templates: TemplateInfo[];
|
|
1231
|
+
title: string;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1215
1234
|
declare const zComfyApiWorkflow: z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodObject<{
|
|
1216
1235
|
inputs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodAny, z.ZodTuple<[z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, number, string>, number, string>]>], null>]>>;
|
|
1217
1236
|
class_type: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comfyorg/comfyui-frontend-types",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
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.
|
|
16
|
+
"@comfyorg/litegraph": "^0.9.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.5.13",
|