MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / findInputSlotByType

Method findInputSlotByType

src/LGraphNode.ts:2183–2196  ·  view source on GitHub ↗
(
    type: ISlotType,
    returnObj?: boolean,
    preferFreeSlot?: boolean,
    doNotUseOccupied?: boolean,
  )

Source from the content-addressed store, hash-verified

2181 doNotUseOccupied?: boolean,
2182 ): INodeInputSlot
2183 findInputSlotByType(
2184 type: ISlotType,
2185 returnObj?: boolean,
2186 preferFreeSlot?: boolean,
2187 doNotUseOccupied?: boolean,
2188 ) {
2189 return this.#findSlotByType(
2190 this.inputs,
2191 type,
2192 returnObj,
2193 preferFreeSlot,
2194 doNotUseOccupied,
2195 )
2196 }
2197
2198 /**
2199 * findSlotByType for OUTPUTS

Callers 1

convertToSubgraphMethod · 0.80

Calls 1

#findSlotByTypeMethod · 0.95

Tested by

no test coverage detected