diff --git a/acorn-walk/src/walk.d.ts b/acorn-walk/src/walk.d.ts index e07a6afa..17545003 100644 --- a/acorn-walk/src/walk.d.ts +++ b/acorn-walk/src/walk.d.ts @@ -141,8 +141,8 @@ export function make( */ export function findNodeAt( node: acorn.Node, - start: number | undefined, - end?: number | undefined, + start: number | undefined | null, + end?: number | undefined | null, type?: FindPredicate | string, base?: RecursiveVisitors, state?: TState @@ -158,7 +158,7 @@ export function findNodeAt( */ export function findNodeAround( node: acorn.Node, - start: number | undefined, + start: number | undefined | null, type?: FindPredicate | string, base?: RecursiveVisitors, state?: TState