(type: string)
| 18 | |
| 19 | /** Get the block config for a single block type. */ |
| 20 | export function getBlock(type: string): BlockConfig | undefined { |
| 21 | return BLOCK_REGISTRY[type] ?? BLOCK_REGISTRY[normalizeType(type)] |
| 22 | } |
| 23 | |
| 24 | /** All block configs. */ |
| 25 | export function getAllBlocks(): BlockConfig[] { |
no test coverage detected