chore: add RichTextAdapter interface type (#3117)

This commit is contained in:
Alessio Gravili
2023-08-03 17:31:21 +02:00
committed by GitHub
parent a78c4631b4
commit 541e41293d

View File

@@ -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>;
}