@comfyorg/comfyui-frontend-types 1.16.7 → 1.17.0
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 +6 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -91,6 +91,11 @@ declare type ApiEvents = AsCustomEvents<ApiEventTypes>;
|
|
|
91
91
|
/** Dictionary of types used in the detail for a custom event */
|
|
92
92
|
declare type ApiEventTypes = ApiToEventType<ApiCalls>;
|
|
93
93
|
|
|
94
|
+
declare interface ApiNodeCost {
|
|
95
|
+
name: string;
|
|
96
|
+
cost: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
94
99
|
/** Handles differing event and API signatures. */
|
|
95
100
|
declare type ApiToEventType<T = ApiCalls> = {
|
|
96
101
|
[K in keyof T]: K extends 'status' ? StatusWsMessageStatus : K extends 'executing' ? NodeId : T[K];
|
|
@@ -1769,6 +1774,7 @@ export declare class ComfyApp {
|
|
|
1769
1774
|
title?: string;
|
|
1770
1775
|
reportType?: string;
|
|
1771
1776
|
}) => void;
|
|
1777
|
+
showApiNodesSignInDialog: (apiNodes: ApiNodeCost[]) => Promise<boolean>;
|
|
1772
1778
|
prompt: ({ title, message, defaultValue }: {
|
|
1773
1779
|
title: string;
|
|
1774
1780
|
message: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comfyorg/comfyui-frontend-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
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.13.
|
|
16
|
+
"@comfyorg/litegraph": "^0.13.2"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.5.13",
|