feat: json rich text editor, blocks, asides, general structure
This commit is contained in:
13
types/components/jsontohtml.ts
Normal file
13
types/components/jsontohtml.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { RTENode } from "../rte/node"
|
||||
|
||||
import type { Node } from "@/types/requests/utils/edges";
|
||||
import type { RenderOptions } from "../rte/option";
|
||||
import type { Embeds } from "@/types/requests/embeds";
|
||||
|
||||
export type JsonToHtmlProps = {
|
||||
embeds: Node<Embeds>[]
|
||||
nodes: RTENode[]
|
||||
renderOptions?: RenderOptions
|
||||
}
|
||||
|
||||
export type EmbedByUid = Record<string, Node<Embeds>>
|
||||
Reference in New Issue
Block a user