We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9676edd commit 87b2a82Copy full SHA for 87b2a82
1 file changed
types/index.d.ts
@@ -14,12 +14,17 @@ export type Options = {
14
directives?: Directive[];
15
} & ParserOptions;
16
17
-export type Node = NodeText | NodeTag;
+export type Tag = string | boolean;
18
+export type Attributes = Record<string, string>;
19
+export type Content = NodeText | Node[];
20
+
21
export type NodeText = string;
22
export type NodeTag = {
- tag?: string | boolean;
23
+ tag?: Tag;
24
attrs?: Attributes;
- content?: Node[];
25
+ content?: Content;
26
};
27
-export type Attributes = Record<string, string>;
28
+export type Node = NodeText | NodeTag;
29
30
0 commit comments