| 1 | export interface IPureNode { |
| 2 | /** |
| 3 | * HTML of the node content. |
| 4 | */ |
| 5 | content: string; |
| 6 | /** |
| 7 | * Additional data created on transformation. |
| 8 | */ |
| 9 | payload?: { |
| 10 | [key: string]: unknown; |
| 11 | /** |
| 12 | * The folding status of this node. |
| 13 | * |
| 14 | * 0 - not folded |
| 15 | * 1 - folded |
| 16 | * 2 - folded along with all its child nodes |
| 17 | */ |
| 18 | fold?: number; |
| 19 | }; |
| 20 | children: IPureNode[]; |
| 21 | } |
| 22 | |
| 23 | export interface INode extends IPureNode { |
| 24 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected