From adf9c0c027c1df2c7edb97269e0171431c48912c Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 23 Aug 2021 14:23:14 +0200 Subject: [PATCH] Update internals for changes in `@types/mdast` --- lib/handlers/dl.js | 2 -- lib/util/wrap-list-items.js | 1 - 2 files changed, 3 deletions(-) diff --git a/lib/handlers/dl.js b/lib/handlers/dl.js index 01e53f7..7ebc128 100644 --- a/lib/handlers/dl.js +++ b/lib/handlers/dl.js @@ -79,7 +79,6 @@ export function dl(h, node) { content.push({ type: 'listItem', spread: result.length > 1, - // @ts-expect-error: `null` is fine. checked: null, children: result }) @@ -117,7 +116,6 @@ function handle(h, children) { { type: 'list', ordered: false, - // @ts-expect-error: `null` is fine. start: null, spread: listItemsSpread(nodes), children: nodes diff --git a/lib/util/wrap-list-items.js b/lib/util/wrap-list-items.js index b08bfc1..4b57065 100644 --- a/lib/util/wrap-list-items.js +++ b/lib/util/wrap-list-items.js @@ -22,7 +22,6 @@ export function wrapListItems(h, node) { children[index] = { type: 'listItem', spread: false, - // @ts-expect-error fine. checked: null, // @ts-expect-error Assume `children[index]` is block content. children: [child]