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 ec1898a commit ec79ffaCopy full SHA for ec79ffa
index.js
@@ -66,6 +66,7 @@ export const filter =
66
67
if (!is(node, index, parent)) return null
68
69
+ // @ts-expect-error: Looks like a parent.
70
if (node.children) {
71
childIndex = -1
72
test.js
@@ -49,6 +49,7 @@ test('should cascade-remove parent nodes', function (t) {
49
* @param {Node} node
50
*/
51
function notOne(node) {
52
+ // @ts-expect-error: fine.
53
return node.value !== '1'
54
}
55
@@ -148,6 +149,7 @@ test('example from README', function (t) {
148
149
150
151
function predicate(node) {
152
153
return node.type !== 'leaf' || Number(node.value) % 2 === 0
154
155
})
0 commit comments