Adds the comfyorg/comfyui-frontend-types to the codebase.

This commit is contained in:
rgthree
2025-03-29 14:49:35 -04:00
parent d10b7c87f4
commit f044a9dbb3
79 changed files with 905 additions and 797 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import type {IContextMenuValue, LGraphCanvas as TLGraphCanvas} from "@litegraph/litegraph.js";
import type {ComfyNodeConstructor, ComfyObjectInfo} from "typings/comfy.js";
import type {IContextMenuValue, LGraphCanvas as TLGraphCanvas, LGraphNodeConstructor} from "@comfyorg/litegraph";
import type {ComfyNodeDef} from "typings/comfy.js";
import {app} from "scripts/app.js";
import {rgthree} from "./rgthree.js";
@@ -64,7 +64,7 @@ function showQueueGroupNodesMenuIfGroupIsSelected(
*/
app.registerExtension({
name: "rgthree.QueueNode",
async beforeRegisterNodeDef(nodeType: ComfyNodeConstructor, nodeData: ComfyObjectInfo) {
async beforeRegisterNodeDef(nodeType: LGraphNodeConstructor, nodeData: ComfyNodeDef) {
const getExtraMenuOptions = nodeType.prototype.getExtraMenuOptions;
nodeType.prototype.getExtraMenuOptions = function (
canvas: TLGraphCanvas,