(options: Omit<BlockFactoryOptions, 'type'> = {})
| 101 | * Creates a function block (code execution). |
| 102 | */ |
| 103 | export function createFunctionBlock(options: Omit<BlockFactoryOptions, 'type'> = {}): any { |
| 104 | return createBlock({ |
| 105 | ...options, |
| 106 | type: 'function', |
| 107 | name: options.name ?? 'Function', |
| 108 | }) |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Creates a condition block (branching logic). |
no test coverage detected