Skip to content

Commit d3afe85

Browse files
committed
Fix internal types for changes
1 parent 6d351ae commit d3afe85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/state.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ function all(parent) {
220220
* Nothing.
221221
*/
222222
function inherit(from, to) {
223+
/** @type {Record<string, unknown> | undefined} */
224+
// @ts-expect-error: custom data.
223225
const left = from.data
224226
/** @type {Record<string, unknown> | undefined} */
225227
let right

test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,6 @@ test('integration (micromark-extension-mdxjs, mdast-util-mdx)', () => {
840840

841841
const hast = toHast(mdast, {passThrough})
842842

843-
// @ts-expect-error: hush.
844843
if (clean && hast) visit(hast, passThrough, acornClean)
845844

846845
// @ts-expect-error: it’s a node.
@@ -1074,7 +1073,6 @@ test('integration (@vue/babel-plugin-jsx, Vue 3)', () => {
10741073
function acornClean(node) {
10751074
node.sourceType = 'module'
10761075

1077-
// @ts-expect-error acorn
10781076
walk(node, {enter})
10791077

10801078
return JSON.parse(JSON.stringify(node))

0 commit comments

Comments
 (0)