Document registerCustomNodes (#772)

This commit is contained in:
bymyself
2024-09-09 20:43:39 -07:00
committed by GitHub
parent 0e01bb3c07
commit 90abf9744c

View File

@@ -66,7 +66,9 @@ export interface ComfyExtension {
beforeRegisterVueAppNodeDefs?(defs: ComfyNodeDef[], app: ComfyApp): void
/**
* Allows the extension to register additional nodes with LGraph after standard nodes are added
* Allows the extension to register additional nodes with LGraph after standard nodes are added.
* Custom node classes should extend **LGraphNode**.
*
* @param app The ComfyUI app instance
*/
registerCustomNodes?(app: ComfyApp): Promise<void>