mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Merge pull request #138 from sha-N/patch-3
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
|
||||
*/
|
||||
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 */
|
||||
remove(node: LGraphNode): void;
|
||||
/** Returns a node by its id. */
|
||||
|
||||
Reference in New Issue
Block a user