mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 01:20:03 +00:00
Remade lost changes
This commit is contained in:
31
src/litegraph.d.ts
vendored
31
src/litegraph.d.ts
vendored
@@ -740,7 +740,7 @@ export declare class LGraphNode {
|
||||
name: string,
|
||||
type: string | -1,
|
||||
extra_info?: Partial<INodeOutputSlot>
|
||||
): void;
|
||||
): INodeOutputSlot;
|
||||
/**
|
||||
* add a new output slot to use in this node
|
||||
* @param array of triplets like [[name,type,extra_info],[...]]
|
||||
@@ -760,7 +760,7 @@ export declare class LGraphNode {
|
||||
name: string,
|
||||
type: string | -1,
|
||||
extra_info?: Partial<INodeInputSlot>
|
||||
): void;
|
||||
): INodeInputSlot;
|
||||
/**
|
||||
* add several new input slots in this node
|
||||
* @param array of triplets like [[name,type,extra_info],[...]]
|
||||
@@ -953,13 +953,34 @@ export declare class LGraphNode {
|
||||
/**
|
||||
* if returns false the incoming connection will be canceled
|
||||
* Called by `LGraph.connect`
|
||||
* @param inputIndex target input slot number
|
||||
* @param outputType type of output slot
|
||||
* @param outputSlot output slot object
|
||||
* @param outputNode node containing the output
|
||||
* @param outputIndex index of output slot
|
||||
*/
|
||||
onConnectInput?(
|
||||
inputIndex: number,
|
||||
type: INodeOutputSlot["type"],
|
||||
outputType: INodeOutputSlot["type"],
|
||||
outputSlot: INodeOutputSlot,
|
||||
_this: this,
|
||||
slotIndex: number
|
||||
outputNode: LGraphNode,
|
||||
outputIndex: number
|
||||
): boolean;
|
||||
/**
|
||||
* if returns false the incoming connection will be canceled
|
||||
* Called by `LGraph.connect`
|
||||
* @param outputIndex target output slot number
|
||||
* @param inputType type of input slot
|
||||
* @param inputSlot input slot object
|
||||
* @param inputNode node containing the input
|
||||
* @param inputIndex index of input slot
|
||||
*/
|
||||
onConnectOutput?(
|
||||
outputIndex: number,
|
||||
inputType: INodeInputSlot["type"],
|
||||
inputSlot: INodeInputSlot,
|
||||
inputNode: LGraphNode,
|
||||
inputIndex: number
|
||||
): boolean;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user