File size: 631 Bytes
21fa704
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// A LOTS OF PATCHES FOR LITEGRAPH TYPES ¯\_(ツ)_/¯
import { LGraph } from './typings/litegraph.js';

export type * from './typings/litegraph.js';

export declare type TypeLiteGraph = typeof LiteGraph & {
  graph: LGraph;
};

// export declare type ComfyApi = typeof api;
export declare type ComfyNode = any;

// I prefer not use global, but if I change of opinion:
// / <reference path="./types.ts" />
// import { LGraphNode as TLGraphNode, LiteGraph as TLiteGraph } from '/types/litegraph';
// export declare const LGraphNode: typeof TLGraphNode;
// declare global {
//   const LGraphNode: LGraphNode;
// }