Skip to content

Commit b2abdf9

Browse files
committed
Fix types for changes in @types/unist
1 parent ad5e2f7 commit b2abdf9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,15 @@ function element(node, parentConfig) {
184184
}
185185

186186
// @ts-ignore Assume no `doctypes` in `element.`
187-
return patch(node, {
188-
type: 'element',
189-
name: node.tagName,
190-
attributes,
191-
children: all(node, config)
192-
})
187+
return patch(
188+
node,
189+
/** @type {XastElement} */ ({
190+
type: 'element',
191+
name: node.tagName,
192+
attributes,
193+
children: all(node, config)
194+
})
195+
)
193196
}
194197

195198
/**

0 commit comments

Comments
 (0)