@comfyorg/comfyui-frontend-types 1.5.17 → 1.6.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.
Files changed (2) hide show
  1. package/index.d.ts +8 -2
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -214,13 +214,19 @@ export declare class ComfyApi extends EventTarget {
214
214
  * Gets a list of model folder keys (eg ['checkpoints', 'loras', ...])
215
215
  * @returns The list of model folder keys
216
216
  */
217
- getModelFolders(): Promise<string[]>;
217
+ getModelFolders(): Promise<{
218
+ name: string;
219
+ folders: string[];
220
+ }[]>;
218
221
  /**
219
222
  * Gets a list of models in the specified folder
220
223
  * @param {string} folder The folder to list models from, such as 'checkpoints'
221
224
  * @returns The list of model filenames within the specified folder
222
225
  */
223
- getModels(folder: string): Promise<string[]>;
226
+ getModels(folder: string): Promise<{
227
+ name: string;
228
+ pathIndex: number;
229
+ }[]>;
224
230
  /**
225
231
  * Gets the metadata for a model
226
232
  * @param {string} folder The folder containing the model
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.5.17",
3
+ "version": "1.6.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.8.45"
16
+ "@comfyorg/litegraph": "^0.8.46"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.4.31",