(subBlocks: Record<string, unknown> | undefined, key: string)
| 223 | type SubBlockWithValue = { value?: unknown } |
| 224 | |
| 225 | function readSubBlockValue(subBlocks: Record<string, unknown> | undefined, key: string): unknown { |
| 226 | const raw = subBlocks?.[key] |
| 227 | if (raw && typeof raw === 'object' && !Array.isArray(raw)) { |
| 228 | return (raw as SubBlockWithValue).value |
| 229 | } |
| 230 | return undefined |
| 231 | } |
| 232 | |
| 233 | export function getLegacyStarterMode(block: { |
| 234 | subBlocks?: Record<string, unknown> |
no outgoing calls
no test coverage detected