(blocks: Record<string, BlockState>)
| 102 | * Only returns enabled schedule blocks (disabled blocks are skipped) |
| 103 | */ |
| 104 | export function findScheduleBlocks(blocks: Record<string, BlockState>): BlockState[] { |
| 105 | return Object.values(blocks).filter( |
| 106 | (block) => block.type === 'schedule' && block.enabled !== false |
| 107 | ) |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Validate a schedule block's configuration |
no outgoing calls
no test coverage detected