From 8a5b165a5b82e8aa79fe77d3d4d8ab4d52ecaf2d Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Thu, 5 Sep 2024 07:58:33 -0700 Subject: [PATCH] [skip ci] fix getNodeById arg type (#124) --- public/litegraph.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/litegraph.d.ts b/public/litegraph.d.ts index 5f0276e70..4f3f6625a 100644 --- a/public/litegraph.d.ts +++ b/public/litegraph.d.ts @@ -508,7 +508,7 @@ export declare class LGraph { /** Removes a node from the graph */ remove(node: LGraphNode): void; /** 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 * @param classObject the class itself (not an string)