Update Litegraph (TypeScript conversion) (#1145)

* Fix various type errors

* Fix rest of ts errors

* update litegraph

* nit
This commit is contained in:
Chenlei Hu
2024-10-07 11:31:54 -04:00
committed by GitHub
parent 9cbfc9856b
commit dee1ec1a2a
15 changed files with 36 additions and 69 deletions

View File

@@ -18,7 +18,7 @@ function createGraph(...nodes: LGraphNode[]) {
class DummyNode extends LGraphNode {
constructor() {
super()
super('dummy')
}
}
@@ -31,7 +31,6 @@ describe('LGraph', () => {
const result1 = graph.serialize({ sortNodes: true })
expect(result1.nodes).not.toHaveLength(0)
// @ts-expect-error Access private property.
graph._nodes = swapNodes(graph.nodes)
const result2 = graph.serialize({ sortNodes: true })