mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-20 05:10:03 +08:00
31 lines
774 B
TypeScript
31 lines
774 B
TypeScript
/**
|
|
* Declare any global properties and import our other typings here.
|
|
*/
|
|
import "@comfyorg/frontend";
|
|
import "./litegraph";
|
|
import "./rgthree";
|
|
import "./comfy";
|
|
|
|
import type {
|
|
LGraphGroup as TLGraphGroup,
|
|
LGraphNode as TLGraphNode,
|
|
LGraph as TLGraph,
|
|
LGraphCanvas as TLGraphCanvas,
|
|
LiteGraph as TLiteGraph,
|
|
} from "@comfyorg/frontend";
|
|
|
|
declare global {
|
|
const LiteGraph: typeof TLiteGraph;
|
|
const LGraph: typeof TLGraph;
|
|
const LGraphNode: typeof TLGraphNode;
|
|
const LGraphCanvas: typeof TLGraphCanvas;
|
|
const LGraphGroup: typeof TLGraphGroup;
|
|
interface Window {
|
|
// Used in the common/comfyui_shim to determine if we're in the app or not.
|
|
comfyAPI: {
|
|
// So much more stuffed in here, add as needed.
|
|
[key: string]: any;
|
|
};
|
|
}
|
|
}
|