Skip to content

Commit 5130977

Browse files
Improved docs
1 parent 3a54a80 commit 5130977

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/basic.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ type DescendantsImpl<T extends Node> =
321321
* @param conditionFn
322322
* @param descentConditionFn An optional function to decide whether the descendant of the given node will be checked as
323323
* well.
324+
*
325+
* This function will be called with some node only after `conditionFn` has returned `false` for this node.
324326
*/
325327
export function hasSomeDescendant<T extends Node>(
326328
node: T & Node,

0 commit comments

Comments
 (0)