(element: Descendant)
| 117 | } |
| 118 | |
| 119 | export const isMentionElement = (element: Descendant): element is MentionElement => { |
| 120 | return 'type' in element && element.type === 'mention'; |
| 121 | } |
| 122 | |
| 123 | export const isCustomTextElement = (element: Descendant): element is CustomText => { |
| 124 | return 'text' in element && typeof element.text === 'string'; |
no outgoing calls
no test coverage detected