We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@types/unist
1 parent ad5e2f7 commit b2abdf9Copy full SHA for b2abdf9
index.js
@@ -184,12 +184,15 @@ function element(node, parentConfig) {
184
}
185
186
// @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
- })
+ return patch(
+ node,
+ /** @type {XastElement} */ ({
+ type: 'element',
+ name: node.tagName,
+ attributes,
193
+ children: all(node, config)
194
+ })
195
+ )
196
197
198
/**
0 commit comments