Type LGraphNode.getInnerNodes (#2498)

This commit is contained in:
Chenlei Hu
2025-02-10 16:35:26 -05:00
committed by GitHub
parent 0479b112c1
commit 8052b2a02a
5 changed files with 10 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
interface IBaseWidget {
onRemove?: () => void
beforeQueued?: () => unknown
serializeValue?: (node: LGraphNode, index: number) => Promise<unknown>
}
}
@@ -43,8 +44,7 @@ declare module '@comfyorg/litegraph' {
onExecuted?(output: any): void
onNodeCreated?(this: LGraphNode): void
setInnerNodes?(nodes: LGraphNode[]): void
// TODO: Requires several coercion changes to runtime code.
getInnerNodes?() // : LGraphNode[]
getInnerNodes?(): LGraphNode[]
convertToNodes?(): LGraphNode[]
recreate?(): Promise<LGraphNode>
refreshComboInNode?(defs: Record<string, ComfyNodeDef>)