File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 99
1010import { convert } from 'unist-util-is'
1111
12+ /**
13+ * Find the first node in `parent` after another `node` or after an index,
14+ * that passes `test`.
15+
16+ * @param parent
17+ * Parent node.
18+ * @param index
19+ * Child of `parent`, or it’s index.
20+ * @param [test]
21+ * `unist-util-is`-compatible test.
22+ * @returns
23+ * Child of `parent` that passes `test`, if found.
24+ */
1225export const findAfter =
1326 /**
1427 * @type {(
@@ -18,9 +31,9 @@ export const findAfter =
1831 */
1932 (
2033 /**
21- * @param {Parent } parent Parent node
22- * @param {Node|number } index Child of `parent`, or it’s index
23- * @param {null|undefined|Type|Props|TestFunctionAnything|Array<Type|Props|TestFunctionAnything> } [test] is-compatible test (such as a type)
34+ * @param {Parent } parent
35+ * @param {Node|number } index
36+ * @param {null|undefined|Type|Props|TestFunctionAnything|Array<Type|Props|TestFunctionAnything> } [test]
2437 * @returns {Node|null }
2538 */
2639 function ( parent , index , test ) {
You can’t perform that action at this time.
0 commit comments