Skip to content

Commit d865bad

Browse files
committed
Update internals for changes in @types/mdast
1 parent 7822781 commit d865bad

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/handlers/dl.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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
*/
104105
function handle(h, children) {
105106
const nodes = wrapListItems(h, {type: 'element', tagName: 'x', children})

lib/types.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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

0 commit comments

Comments
 (0)