(name: string, returnObj: boolean = false)
| 2099 | findOutputSlot<TReturn extends false>(name: string, returnObj?: TReturn): number |
| 2100 | findOutputSlot<TReturn extends true>(name: string, returnObj?: TReturn): INodeOutputSlot |
| 2101 | findOutputSlot(name: string, returnObj: boolean = false) { |
| 2102 | const { outputs } = this |
| 2103 | if (!outputs) return -1 |
| 2104 | |
| 2105 | for (const [i, output] of outputs.entries()) { |
| 2106 | if (name == output.name) { |
| 2107 | return !returnObj ? i : output |
| 2108 | } |
| 2109 | } |
| 2110 | return -1 |
| 2111 | } |
| 2112 | |
| 2113 | /** |
| 2114 | * Finds the first free input slot. |
no outgoing calls
no test coverage detected