(options: Omit<BlockFactoryOptions, 'type'> = {})
| 182 | * Creates an API block (HTTP requests). |
| 183 | */ |
| 184 | export function createApiBlock(options: Omit<BlockFactoryOptions, 'type'> = {}): any { |
| 185 | return createBlock({ |
| 186 | ...options, |
| 187 | type: 'api', |
| 188 | name: options.name ?? 'API', |
| 189 | }) |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Creates a response block (workflow output). |
no test coverage detected