(type: string)
| 93 | |
| 94 | /** Whether the given string is a registered block type. Accepts hyphens as a dash-form alias. */ |
| 95 | export function isValidBlockType(type: string): type is string { |
| 96 | return type in BLOCK_REGISTRY || normalizeType(type) in BLOCK_REGISTRY |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Get the presentation/catalog meta for a block type, resolving through the |
no test coverage detected