From 7f1dff1ea349884ab6fb682186c2596de712fda7 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 13 Jan 2025 10:28:10 +0100 Subject: [PATCH] Allow null in types of optional params to findNodeAt and findNodeAround Issue https://github.com/acornjs/acorn/pull/1340 --- acorn-walk/src/walk.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acorn-walk/src/walk.d.ts b/acorn-walk/src/walk.d.ts index e07a6afaf..175450036 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