From cfe7cc1bdb4f4e6cac1e9c32d5725ff780c7af60 Mon Sep 17 00:00:00 2001 From: Julien MOREAU-MATHIS Date: Tue, 3 Dec 2019 18:17:27 +0100 Subject: [PATCH] Fixed DTS for registered_node_types, node_types_by_file_extension, and Nodes in LiteGraph to properly take LGraphNodeConstructor instead of LGraphNode. --- src/litegraph.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/litegraph.d.ts b/src/litegraph.d.ts index a3abee85e..8c2a0e852 100644 --- a/src/litegraph.d.ts +++ b/src/litegraph.d.ts @@ -209,11 +209,11 @@ export const LiteGraph: { /** if set to true some nodes like Formula would be allowed to evaluate code that comes from unsafe sources (like node configuration), which could lead to exploits */ allow_scripts: boolean; /** node types by string */ - registered_node_types: Record; + registered_node_types: Record; /** used for dropping files in the canvas */ - node_types_by_file_extension: Record; + node_types_by_file_extension: Record; /** node types by class name */ - Nodes: Record; + Nodes: Record; /** used to add extra features to the search box */ searchbox_extras: Record<