From efb5d6028315860d3ec6e7a8cea906caa3514850 Mon Sep 17 00:00:00 2001 From: Lucas Nascimento Date: Thu, 28 Jan 2021 00:10:57 -0300 Subject: [PATCH] TS support about LGraphNode.disconnectOutput --- src/litegraph.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.d.ts b/src/litegraph.d.ts index 9d3d37c02..08aa591f5 100644 --- a/src/litegraph.d.ts +++ b/src/litegraph.d.ts @@ -858,7 +858,7 @@ export declare class LGraphNode { * @param target_node the target node to which this slot is connected [Optional, if not target_node is specified all nodes will be disconnected] * @return if it was disconnected successfully */ - disconnectOutput(slot: number | string, targetNode: LGraphNode): boolean; + disconnectOutput(slot: number | string, targetNode?: LGraphNode): boolean; /** * disconnect one input * @param slot (could be the number of the slot or the string with the name of the slot)