Skip to content

Commit afed04e

Browse files
committed
Refactor code-style
1 parent 6560841 commit afed04e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/**
22
* @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
3+
* @typedef {import('unist-util-is').Test} Test
84
*/
95

106
import {convert} from 'unist-util-is'
@@ -17,7 +13,7 @@ let empty
1713
*
1814
* @param {Node} node
1915
* Tree to traverse.
20-
* @param {null|undefined|Type|Props|TestFunctionAnything|Array<Type|Props|TestFunctionAnything>} [test]
16+
* @param {Test} [test]
2117
* `unist-util-is`-compatible test (such as a node type).
2218
* @returns {number}
2319
* Exclusive descendants of `node` that pass `test`.

0 commit comments

Comments
 (0)