From 1d5028637852c2834091739646e25dd6558ee7a8 Mon Sep 17 00:00:00 2001 From: susiwen8 Date: Sat, 15 Feb 2020 00:09:32 +0800 Subject: [PATCH] Fix some errors in walk types * Remove duplicate function * end is optional in findNodeAt --- acorn-walk/dist/walk.d.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/acorn-walk/dist/walk.d.ts b/acorn-walk/dist/walk.d.ts index f2e68483c..b4473367c 100644 --- a/acorn-walk/dist/walk.d.ts +++ b/acorn-walk/dist/walk.d.ts @@ -94,16 +94,7 @@ declare module "acorn-walk" { export function findNodeAt( node: Node, start: number | undefined, - end: number | undefined, - type: string, - base?: RecursiveVisitors, - state?: TState - ): Found | undefined; - - export function findNodeAt( - node: Node, - start: number | undefined, - end: number | undefined, + end?: number | undefined, type?: FindPredicate, base?: RecursiveVisitors, state?: TState