File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 66 * @typedef {import('../types.js').MdastNode } MdastNode
77 * @typedef {import('../types.js').MdastListContent } MdastListContent
88 * @typedef {import('../types.js').MdastBlockContent } MdastBlockContent
9+ * @typedef {import('../types.js').MdastDefinitionContent } MdastDefinitionContent
910 *
1011 * @typedef Group
1112 * @property {Array.<Element> } titles
@@ -35,7 +36,7 @@ export function dl(h, node) {
3536 let group = { titles : [ ] , definitions : [ ] }
3637 /** @type {ElementChild } */
3738 let child
38- /** @type {Array.<MdastBlockContent> } */
39+ /** @type {Array.<MdastBlockContent|MdastDefinitionContent > } */
3940 let result
4041
4142 // Unwrap `<div>`s
@@ -99,7 +100,7 @@ export function dl(h, node) {
99100/**
100101 * @param {H } h
101102 * @param {Array.<ElementChild> } children
102- * @returns {Array.<MdastBlockContent> }
103+ * @returns {Array.<MdastBlockContent|MdastDefinitionContent > }
103104 */
104105function handle ( h , children ) {
105106 const nodes = wrapListItems ( h , { type : 'element' , tagName : 'x' , children} )
Original file line number Diff line number Diff line change 66 * @typedef {import('mdast').Parent } MdastParent
77 * @typedef {import('mdast').ListContent } MdastListContent
88 * @typedef {import('mdast').PhrasingContent } MdastPhrasingContent
9+ * @typedef {import('mdast').DefinitionContent } MdastDefinitionContent
910 * @typedef {import('mdast').BlockContent } MdastBlockContent
1011 * @typedef {import('mdast').TableContent } MdastTableContent
1112 * @typedef {import('mdast').RowContent } MdastRowContent
You can’t perform that action at this time.
0 commit comments