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

Method findOutputSlotByType

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

Source from the content-addressed store, hash-verified

2211 doNotUseOccupied?: boolean,
2212 ): INodeOutputSlot
2213 findOutputSlotByType(
2214 type: ISlotType,
2215 returnObj?: boolean,
2216 preferFreeSlot?: boolean,
2217 doNotUseOccupied?: boolean,
2218 ) {
2219 return this.#findSlotByType(
2220 this.outputs,
2221 type,
2222 returnObj,
2223 preferFreeSlot,
2224 doNotUseOccupied,
2225 )
2226 }
2227
2228 /**
2229 * returns the output (or input) slot with a given type, -1 if not found

Callers 1

convertToSubgraphMethod · 0.80

Calls 1

#findSlotByTypeMethod · 0.95

Tested by

no test coverage detected