(block: SerializedBlock)
| 560 | } |
| 561 | |
| 562 | function extractSubBlocks(block: SerializedBlock): Record<string, unknown> | undefined { |
| 563 | const metadata = block.metadata |
| 564 | if (!metadata || typeof metadata !== 'object') { |
| 565 | return undefined |
| 566 | } |
| 567 | |
| 568 | const maybeWithSubBlocks = metadata as typeof metadata & { |
| 569 | subBlocks?: Record<string, unknown> |
| 570 | } |
| 571 | |
| 572 | const subBlocks = maybeWithSubBlocks.subBlocks |
| 573 | if (subBlocks && typeof subBlocks === 'object' && !Array.isArray(subBlocks)) { |
| 574 | return subBlocks |
| 575 | } |
| 576 | |
| 577 | return undefined |
| 578 | } |
| 579 | |
| 580 | export interface StartBlockOutputOptions { |
| 581 | resolution: ExecutorStartResolution |
no outgoing calls
no test coverage detected