Skip to content

Commit 7f1dff1

Browse files
committed
Allow null in types of optional params to findNodeAt and findNodeAround
Issue #1340
1 parent 3221fa5 commit 7f1dff1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

acorn-walk/src/walk.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export function make<TState>(
141141
*/
142142
export function findNodeAt<TState>(
143143
node: acorn.Node,
144-
start: number | undefined,
145-
end?: number | undefined,
144+
start: number | undefined | null,
145+
end?: number | undefined | null,
146146
type?: FindPredicate | string,
147147
base?: RecursiveVisitors<TState>,
148148
state?: TState
@@ -158,7 +158,7 @@ export function findNodeAt<TState>(
158158
*/
159159
export function findNodeAround<TState>(
160160
node: acorn.Node,
161-
start: number | undefined,
161+
start: number | undefined | null,
162162
type?: FindPredicate | string,
163163
base?: RecursiveVisitors<TState>,
164164
state?: TState

0 commit comments

Comments
 (0)