Fix incorrect type paths (#568)

This commit is contained in:
Björn Söderqvist
2024-08-21 15:41:06 +02:00
committed by GitHub
parent 7487c565c8
commit 7051d86ba7
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import { LGraphNode, IWidget } from './litegraph' import { LGraphNode, IWidget } from './litegraph'
import { ComfyApp } from '../../scripts/app' import { ComfyApp } from '../scripts/app'
export interface ComfyExtension { export interface ComfyExtension {
/** /**

View File

@@ -1,7 +1,7 @@
import type { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph' 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") } LG
* @typedef { import("../../src/types/litegraph").IWidget } IWidget * @typedef { import("../../src/types/litegraph").IWidget } IWidget
* @typedef { import("../../src/types/litegraph").ContextMenuItem } ContextMenuItem * @typedef { import("../../src/types/litegraph").ContextMenuItem } ContextMenuItem

View File

@@ -67,7 +67,7 @@ export async function checkBeforeAndAfterReload(graph, cb) {
* @param { string } name * @param { string } name
* @param { Record<string, string | [string | string[], any]> } input * @param { Record<string, string | [string | string[], any]> } input
* @param { (string | string[])[] | Record<string, string | string[]> } output * @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 = {}) { export function makeNodeDef(name, input, output = {}) {
const nodeDef = { const nodeDef = {

View File

@@ -26,7 +26,7 @@ export interface APIConfig {
} }
/** /**
* @typedef { import("./src/types/comfy").ComfyObjectInfo } ComfyObjectInfo * @typedef { import("../../src/types/comfy").ComfyObjectInfo } ComfyObjectInfo
*/ */
/** /**