added type def for callback onNodeAdded

This commit is contained in:
Shan M
2020-05-11 13:44:52 +03:00
committed by GitHub
parent 240cee0209
commit 0a2f8a1d6d

5
src/litegraph.d.ts vendored
View File

@@ -433,6 +433,11 @@ export declare class LGraph {
* @param node the instance of the node * @param node the instance of the node
*/ */
add(node: LGraphNode, skip_compute_order?: boolean): void; add(node: LGraphNode, skip_compute_order?: boolean): void;
/**
* Called when a new node is added
* @param node the instance of the node
*/
onNodeAdded(node: LGraphNode): void;
/** Removes a node from the graph */ /** Removes a node from the graph */
remove(node: LGraphNode): void; remove(node: LGraphNode): void;
/** Returns a node by its id. */ /** Returns a node by its id. */