@@ -52,21 +52,21 @@ information about the `Node`’s location in source file.
5252 * Syntactic units in unist syntax trees are called nodes.
5353 */
5454interface Node {
55- /**
56- * The variant of a node.
57- */
58- type: string ;
59-
60- /**
61- * Information from the ecosystem.
62- */
63- data? : Data | undefined ;
64-
65- /**
66- * Location of a node in a source document.
67- * Must not be present if a node is generated.
68- */
69- position? : Position | undefined ;
55+ /**
56+ * The variant of a node.
57+ */
58+ type: string
59+
60+ /**
61+ * Information from the ecosystem.
62+ */
63+ data? : Data | undefined
64+
65+ /**
66+ * Location of a node in a source document.
67+ * Must not be present if a node is generated.
68+ */
69+ position? : Position | undefined
7070}
7171
7272/**
@@ -75,29 +75,30 @@ interface Node {
7575 * implementing unist.
7676 */
7777export interface Data {
78- [key : string ]: unknown ;
78+ [key : string ]: unknown
7979}
8080
8181/**
8282 * Location of a node in a source file.
8383 */
8484export interface Position {
85- /**
86- * Place of the first character of the parsed source region.
87- */
88- start: Point ;
89-
90- /**
91- * Place of the first character after the parsed source region.
92- */
93- end: Point ;
94-
95- /**
96- * Start column at each index (plus start line) in the source region,
97- * for elements that span multiple lines.
98- */
99- indent? : number [] | undefined ;
85+ /**
86+ * Place of the first character of the parsed source region.
87+ */
88+ start: Point
89+
90+ /**
91+ * Place of the first character after the parsed source region.
92+ */
93+ end: Point
94+
95+ /**
96+ * Start column at each index (plus start line) in the source region,
97+ * for elements that span multiple lines.
98+ */
99+ indent? : number [] | undefined
100100}
101+
101102```
102103
103104#### ` Literal `
@@ -110,7 +111,7 @@ For example a markdown `text` `Node` extends `Literal` and sets `value` to be a
110111 * Nodes containing a value.
111112 */
112113export interface Literal extends Node {
113- value: unknown ;
114+ value: unknown
114115}
115116```
116117
@@ -121,10 +122,10 @@ export interface Literal extends Node {
121122 * Nodes containing other nodes.
122123 */
123124export interface Parent extends Node {
124- /**
125- * List representing the children of a node.
126- */
127- children: Node [];
125+ /**
126+ * List representing the children of a node.
127+ */
128+ children: Node [];
128129}
129130```
130131
0 commit comments