TS support about LGraphNode.disconnectOutput

This commit is contained in:
Lucas Nascimento
2021-01-28 00:10:57 -03:00
parent e6147b7217
commit efb5d60283

2
src/litegraph.d.ts vendored
View File

@@ -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)