|
7 | 7 | * @typedef {import('../types.js').MdastPhrasingContent} MdastPhrasingContent |
8 | 8 | * |
9 | 9 | * @typedef Info |
10 | | - * @property {Array.<string|null>} align |
| 10 | + * @property {Array<string|null>} align |
11 | 11 | * @property {boolean} headless |
12 | 12 | */ |
13 | 13 |
|
@@ -61,7 +61,7 @@ export function table(h, node) { |
61 | 61 | break |
62 | 62 | } |
63 | 63 |
|
64 | | - /** @type {Array.<MdastRowContent>} */ |
| 64 | + /** @type {Array<MdastRowContent>} */ |
65 | 65 | const newCells = [] |
66 | 66 |
|
67 | 67 | if (otherRowIndex !== rowIndex || colIndex !== cellIndex) { |
@@ -114,7 +114,7 @@ function inspect(node) { |
114 | 114 | let headless = true |
115 | 115 | let rowIndex = 0 |
116 | 116 | let cellIndex = 0 |
117 | | - /** @type {Array.<string|null>} */ |
| 117 | + /** @type {Array<string|null>} */ |
118 | 118 | const align = [null] |
119 | 119 |
|
120 | 120 | visit(node, 'element', (child) => { |
@@ -148,15 +148,15 @@ function inspect(node) { |
148 | 148 | /** |
149 | 149 | * Ensure the rows are properly structured. |
150 | 150 | * |
151 | | - * @param {Array.<MdastNode>} children |
| 151 | + * @param {Array<MdastNode>} children |
152 | 152 | * @param {boolean} headless |
153 | | - * @returns {Array.<MdastTableContent>} |
| 153 | + * @returns {Array<MdastTableContent>} |
154 | 154 | */ |
155 | 155 | function toRows(children, headless) { |
156 | 156 | let index = -1 |
157 | | - /** @type {Array.<MdastTableContent>} */ |
| 157 | + /** @type {Array<MdastTableContent>} */ |
158 | 158 | const nodes = [] |
159 | | - /** @type {Array.<MdastRowContent>|undefined} */ |
| 159 | + /** @type {Array<MdastRowContent>|undefined} */ |
160 | 160 | let queue |
161 | 161 |
|
162 | 162 | // Add an empty header row. |
@@ -197,16 +197,16 @@ function toRows(children, headless) { |
197 | 197 | /** |
198 | 198 | * Ensure the cells in a row are properly structured. |
199 | 199 | * |
200 | | - * @param {Array.<MdastNode>} children |
201 | | - * @returns {Array.<MdastRowContent>} |
| 200 | + * @param {Array<MdastNode>} children |
| 201 | + * @returns {Array<MdastRowContent>} |
202 | 202 | */ |
203 | 203 | function toCells(children) { |
204 | | - /** @type {Array.<MdastRowContent>} */ |
| 204 | + /** @type {Array<MdastRowContent>} */ |
205 | 205 | const nodes = [] |
206 | 206 | let index = -1 |
207 | 207 | /** @type {MdastNode} */ |
208 | 208 | let node |
209 | | - /** @type {Array.<MdastPhrasingContent>|undefined} */ |
| 209 | + /** @type {Array<MdastPhrasingContent>|undefined} */ |
210 | 210 | let queue |
211 | 211 |
|
212 | 212 | while (++index < children.length) { |
|
0 commit comments