Skip to content

Commit

Permalink
Fixed DTS for registered_node_types, node_types_by_file_extension, an…
Browse files Browse the repository at this point in the history
…d Nodes in LiteGraph to properly take LGraphNodeConstructor instead of LGraphNode.
  • Loading branch information
julien-moreau committed Dec 3, 2019
1 parent 4e47b90 commit cfe7cc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/litegraph.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, LGraphNode>;
registered_node_types: Record<string, LGraphNodeConstructor>;
/** used for dropping files in the canvas */
node_types_by_file_extension: Record<string, LGraphNode>;
node_types_by_file_extension: Record<string, LGraphNodeConstructor>;
/** node types by class name */
Nodes: Record<string, LGraphNode>;
Nodes: Record<string, LGraphNodeConstructor>;

/** used to add extra features to the search box */
searchbox_extras: Record<
Expand Down

0 comments on commit cfe7cc1

Please sign in to comment.