[skip ci] fix getNodeById arg type (#124)

This commit is contained in:
Chenlei Hu
2024-09-05 07:58:33 -07:00
committed by GitHub
parent adb8ff335c
commit 8a5b165a5b

View File

@@ -508,7 +508,7 @@ export declare class LGraph {
/** 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. */
getNodeById(id: number): LGraphNode | undefined; getNodeById(id: number | string): LGraphNode | undefined;
/** /**
* Returns a list of nodes that matches a class * Returns a list of nodes that matches a class
* @param classObject the class itself (not an string) * @param classObject the class itself (not an string)