(element: Descendant)
| 121 | } |
| 122 | |
| 123 | export const isCustomTextElement = (element: Descendant): element is CustomText => { |
| 124 | return 'text' in element && typeof element.text === 'string'; |
| 125 | } |
| 126 | |
| 127 | export const isParagraphElement = (element: Descendant): element is ParagraphElement => { |
| 128 | return 'type' in element && element.type === 'paragraph'; |
no outgoing calls
no test coverage detected