Skip to content

Commit

Permalink
Allow null in types of optional params to findNodeAt and findNodeAround
Browse files Browse the repository at this point in the history
Issue #1340
  • Loading branch information
marijnh committed Jan 13, 2025
1 parent 3221fa5 commit 7f1dff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acorn-walk/src/walk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export function make<TState>(
*/
export function findNodeAt<TState>(
node: acorn.Node,
start: number | undefined,
end?: number | undefined,
start: number | undefined | null,
end?: number | undefined | null,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState
Expand All @@ -158,7 +158,7 @@ export function findNodeAt<TState>(
*/
export function findNodeAround<TState>(
node: acorn.Node,
start: number | undefined,
start: number | undefined | null,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState
Expand Down

0 comments on commit 7f1dff1

Please sign in to comment.