(block: BlockState, id: string)
| 116 | * Safely extract a value from a block's subBlocks |
| 117 | */ |
| 118 | export function getSubBlockValue(block: BlockState, id: string): string { |
| 119 | const subBlock = block.subBlocks[id] as SubBlockValue | undefined |
| 120 | return subBlock?.value || '' |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Parse and extract hours and minutes from a time string |
no outgoing calls
no test coverage detected