()
| 88 | |
| 89 | /** All registered block type identifiers. */ |
| 90 | export function getAllBlockTypes(): string[] { |
| 91 | return Object.keys(BLOCK_REGISTRY) |
| 92 | } |
| 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 { |