mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
Fix incorrect type paths (#568)
This commit is contained in:
2
src/types/comfy.d.ts
vendored
2
src/types/comfy.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
import { LGraphNode, IWidget } from './litegraph'
|
||||
import { ComfyApp } from '../../scripts/app'
|
||||
import { ComfyApp } from '../scripts/app'
|
||||
|
||||
export interface ComfyExtension {
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph'
|
||||
|
||||
/**
|
||||
* @typedef { import("./src/scripts/app")["app"] } app
|
||||
* @typedef { import("../../src/scripts/app")["app"] } app
|
||||
* @typedef { import("../../src/types/litegraph") } LG
|
||||
* @typedef { import("../../src/types/litegraph").IWidget } IWidget
|
||||
* @typedef { import("../../src/types/litegraph").ContextMenuItem } ContextMenuItem
|
||||
|
||||
@@ -67,7 +67,7 @@ export async function checkBeforeAndAfterReload(graph, cb) {
|
||||
* @param { string } name
|
||||
* @param { Record<string, string | [string | string[], any]> } input
|
||||
* @param { (string | string[])[] | Record<string, string | string[]> } output
|
||||
* @returns { Record<string, import("./src/types/comfy").ComfyObjectInfo> }
|
||||
* @returns { Record<string, import("../../src/types/comfy").ComfyObjectInfo> }
|
||||
*/
|
||||
export function makeNodeDef(name, input, output = {}) {
|
||||
const nodeDef = {
|
||||
|
||||
@@ -26,7 +26,7 @@ export interface APIConfig {
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef { import("./src/types/comfy").ComfyObjectInfo } ComfyObjectInfo
|
||||
* @typedef { import("../../src/types/comfy").ComfyObjectInfo } ComfyObjectInfo
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user