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.
1 parent 6560841 commit afed04eCopy full SHA for afed04e
lib/index.js
@@ -1,10 +1,6 @@
1
/**
2
* @typedef {import('unist').Node} Node
3
- * @typedef {import('unist').Parent} Parent
4
- *
5
- * @typedef {string} Type
6
- * @typedef {Record<string, unknown>} Props
7
- * @typedef {import('unist-util-is').TestFunctionAnything} TestFunctionAnything
+ * @typedef {import('unist-util-is').Test} Test
8
*/
9
10
import {convert} from 'unist-util-is'
@@ -17,7 +13,7 @@ let empty
17
13
*
18
14
* @param {Node} node
19
15
* Tree to traverse.
20
- * @param {null|undefined|Type|Props|TestFunctionAnything|Array<Type|Props|TestFunctionAnything>} [test]
16
+ * @param {Test} [test]
21
* `unist-util-is`-compatible test (such as a node type).
22
* @returns {number}
23
* Exclusive descendants of `node` that pass `test`.
0 commit comments