mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
added type def for callback onNodeAdded
This commit is contained in:
5
src/litegraph.d.ts
vendored
5
src/litegraph.d.ts
vendored
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user