Skip to content

Commit

Permalink
Export type for findNodeBefore
Browse files Browse the repository at this point in the history
FIX: Add missing type for `findNodeBefore`.

Closes #1272
marijnh committed Jan 11, 2024
1 parent ce6616f commit 54ec370
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion acorn-walk/src/walk.d.ts
Original file line number Diff line number Diff line change
@@ -165,8 +165,13 @@ export function findNodeAround<TState>(
): Found<TState> | undefined

/**
* similar to {@link findNodeAround}, but will match all nodes after the given position (testing outer nodes before inner nodes).
* Find the outermost matching node after a given position.
*/
export const findNodeAfter: typeof findNodeAround

/**
* Find the outermost matching node before a given position.
*/
export const findNodeBefore: typeof findNodeAround

export const base: RecursiveVisitors<any>

0 comments on commit 54ec370

Please sign in to comment.