File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
* @typedef {import('../types.js').MdastNode } MdastNode
7
7
* @typedef {import('../types.js').MdastListContent } MdastListContent
8
8
* @typedef {import('../types.js').MdastBlockContent } MdastBlockContent
9
+ * @typedef {import('../types.js').MdastDefinitionContent } MdastDefinitionContent
9
10
*
10
11
* @typedef Group
11
12
* @property {Array.<Element> } titles
@@ -35,7 +36,7 @@ export function dl(h, node) {
35
36
let group = { titles : [ ] , definitions : [ ] }
36
37
/** @type {ElementChild } */
37
38
let child
38
- /** @type {Array.<MdastBlockContent> } */
39
+ /** @type {Array.<MdastBlockContent|MdastDefinitionContent > } */
39
40
let result
40
41
41
42
// Unwrap `<div>`s
@@ -99,7 +100,7 @@ export function dl(h, node) {
99
100
/**
100
101
* @param {H } h
101
102
* @param {Array.<ElementChild> } children
102
- * @returns {Array.<MdastBlockContent> }
103
+ * @returns {Array.<MdastBlockContent|MdastDefinitionContent > }
103
104
*/
104
105
function handle ( h , children ) {
105
106
const nodes = wrapListItems ( h , { type : 'element' , tagName : 'x' , children} )
Original file line number Diff line number Diff line change 6
6
* @typedef {import('mdast').Parent } MdastParent
7
7
* @typedef {import('mdast').ListContent } MdastListContent
8
8
* @typedef {import('mdast').PhrasingContent } MdastPhrasingContent
9
+ * @typedef {import('mdast').DefinitionContent } MdastDefinitionContent
9
10
* @typedef {import('mdast').BlockContent } MdastBlockContent
10
11
* @typedef {import('mdast').TableContent } MdastTableContent
11
12
* @typedef {import('mdast').RowContent } MdastRowContent
You can’t perform that action at this time.
0 commit comments