Add getters to LGraph private fields (#141)

This commit is contained in:
Chenlei Hu
2024-09-14 16:13:56 +09:00
committed by GitHub
parent 0f1b72ce94
commit 4c67692e62
2 changed files with 32 additions and 0 deletions

View File

@@ -435,6 +435,13 @@ export declare class LGraph {
private _nodes_in_order: LGraphNode[];
private _version: number;
get nodes(): LGraphNode[];
get groups(): LGraphGroup[];
get nodes_by_id(): Record<number, LGraphNode>;
get nodes_executable(): (LGraphNode & { onExecute: NonNullable<LGraphNode["onExecute"]> }[] | null);
get nodes_in_order(): LGraphNode[];
get version(): number;
getSupportedTypes(): string[];
/** Removes all nodes from this graph */
clear(): void;