Add TS types / merge ComfyLGraphNode (#902)

* Add TS type for LGraphNodeConstructor

* Add TS type & move shared prop to parent

* Add TS types - Comfy augmentations

* nit - TS type

* Merge ComfyLGNode into existing augmentations

* nit - fix missed explicit type on import
This commit is contained in:
filtered
2024-09-21 19:18:27 +10:00
committed by GitHub
parent 88acabb355
commit c7f123766e
7 changed files with 42 additions and 42 deletions

View File

@@ -378,7 +378,6 @@ app.registerExtension({
const nodeIds = Object.keys(app.canvas.selected_nodes)
for (let i = 0; i < nodeIds.length; i++) {
const node = app.graph.getNodeById(nodeIds[i])
// @ts-expect-error
const nodeData = node?.constructor.nodeData
let groupData = GroupNodeHandler.getGroupData(node)