mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-02 04:02:20 +00:00
Update Litegraph (TypeScript conversion) (#1145)
* Fix various type errors * Fix rest of ts errors * update litegraph * nit
This commit is contained in:
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user