Skip to content

Commit

Permalink
Add improved jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 5, 2022
1 parent 1ee0c28 commit 2f0494b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@
import {visitParents} from 'unist-util-visit-parents'

/**
* Visit children of tree which pass a test
* Visit children of tree which pass test.
*
* @param tree Abstract syntax tree to walk
* @param test Test, optional
* @param visitor Function to run for each node
* @param reverse Visit the tree in reverse, defaults to false
* @param tree
* Tree to walk
* @param [test]
* `unist-util-is`-compatible test
* @param visitor
* Function called for nodes that pass `test`.
* @param reverse
* Traverse in reverse preorder (NRL) instead of preorder (NLR) (default).
*/
export const visit =
/**
Expand Down Expand Up @@ -53,4 +57,5 @@ export const visit =
}
}
)

export {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'

0 comments on commit 2f0494b

Please sign in to comment.