Update litegraph API - add @ts-expect-error (#1380)

* Update litegraph API - add @ts-expect-error

LG update removes some implicit any, exposing existing errors

* Update litegraph

---------

Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
filtered
2024-10-31 11:05:04 +11:00
committed by GitHub
parent 94f4147f92
commit ed0592d6e0
3 changed files with 7 additions and 5 deletions

View File

@@ -2299,6 +2299,7 @@ export class ComfyApp {
}
try {
// @ts-expect-error Discrepancies between zod and litegraph - in progress
this.graph.configure(graphData)
if (
restore_view &&
@@ -2636,6 +2637,7 @@ export class ComfyApp {
const p = await this.graphToPrompt()
try {
// @ts-expect-error Discrepancies between zod and litegraph - in progress
const res = await api.queuePrompt(number, p)
this.lastNodeErrors = res.node_errors
if (this.lastNodeErrors.length > 0) {