mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-18 22:20:03 +00:00
Add a public API function for registering node replacements, refactor code accordingly
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, TypedDict
|
||||
from server import PromptServer
|
||||
|
||||
|
||||
def register(node_replace: NodeReplace):
|
||||
"""Register a node replacement mapping."""
|
||||
PromptServer.instance.node_replace_manager.register(node_replace)
|
||||
|
||||
|
||||
class InputMapOldId(TypedDict):
|
||||
|
||||
Reference in New Issue
Block a user