diff --git a/src/litegraph.d.ts b/src/litegraph.d.ts index 34315f36f..551601a11 100644 --- a/src/litegraph.d.ts +++ b/src/litegraph.d.ts @@ -228,6 +228,8 @@ export const LiteGraph: { createNode(type: string): T; /** Register a node class so it can be listed when the user wants to create a new one */ registerNodeType(type: string, base: { new (): LGraphNode }): void; + /** removes a node type from the system */ + unregisterNodeType(type: string): void; /** * Create a new node type by passing a function, it wraps it with a proper class and generates inputs according to the parameters of the function. * Useful to wrap simple methods that do not require properties, and that only process some input to generate an output.