( inputFormat: InputFormatField[], outputs: OutputDefinition )
| 145 | } |
| 146 | |
| 147 | function applyInputFormatFields( |
| 148 | inputFormat: InputFormatField[], |
| 149 | outputs: OutputDefinition |
| 150 | ): OutputDefinition { |
| 151 | for (const field of inputFormat) { |
| 152 | const fieldName = field?.name?.trim() |
| 153 | if (!fieldName) continue |
| 154 | |
| 155 | outputs[fieldName] = { |
| 156 | type: (field?.type || 'any') as any, |
| 157 | description: `Field from input format`, |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | return outputs |
| 162 | } |
| 163 | |
| 164 | function hasInputFormat(blockConfig: BlockConfig): boolean { |
| 165 | return blockConfig.subBlocks?.some((sb) => sb.type === 'input-format') || false |
no outgoing calls
no test coverage detected