mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Merge branch 'master' of https://github.com/jagenjo/litegraph.js
This commit is contained in:
2
src/litegraph.d.ts
vendored
2
src/litegraph.d.ts
vendored
@@ -228,6 +228,8 @@ export const LiteGraph: {
|
|||||||
createNode<T extends LGraphNode = LGraphNode>(type: string): T;
|
createNode<T extends LGraphNode = LGraphNode>(type: string): T;
|
||||||
/** Register a node class so it can be listed when the user wants to create a new one */
|
/** 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;
|
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.
|
* 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.
|
* Useful to wrap simple methods that do not require properties, and that only process some input to generate an output.
|
||||||
|
|||||||
Reference in New Issue
Block a user