Use LiteGraph validation for node search->create (#822)

Adds LiteGraph type to augmentation until LG types are auto-generated
Removes @ts-expect-error
This commit is contained in:
filtered
2024-09-14 09:36:48 +10:00
committed by GitHub
parent 48f84a46cd
commit c98ea5ba01
3 changed files with 6 additions and 5 deletions

View File

@@ -130,7 +130,6 @@ app.registerExtension({
: null
if (
inputType &&
// @ts-expect-error Will self-resolve when LiteGraph types are generated
!LiteGraph.isValidConnection(inputType, nodeOutType)
) {
// The output doesnt match our input so disconnect it