chore: add RichTextAdapter interface type (#3117)
This commit is contained in:
@@ -11,3 +11,7 @@ export type ElementNode = { type?: string; children: (TextNode | ElementNode)[]
|
||||
export function nodeIsTextNode(node: TextNode | ElementNode): node is TextNode {
|
||||
return 'text' in node;
|
||||
}
|
||||
|
||||
export interface RichTextAdapter {
|
||||
component: React.FC<Props>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user