Skip to content

Commit

Permalink
Fix some errors in walk types
Browse files Browse the repository at this point in the history
* Remove duplicate function

* end is optional in findNodeAt
  • Loading branch information
susiwen8 committed Feb 14, 2020
1 parent 97801f0 commit 1d50286
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions acorn-walk/dist/walk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,7 @@ declare module "acorn-walk" {
export function findNodeAt<TState>(
node: Node,
start: number | undefined,
end: number | undefined,
type: string,
base?: RecursiveVisitors<TState>,
state?: TState
): Found<TState> | undefined;

export function findNodeAt<TState>(
node: Node,
start: number | undefined,
end: number | undefined,
end?: number | undefined,
type?: FindPredicate,
base?: RecursiveVisitors<TState>,
state?: TState
Expand Down

0 comments on commit 1d50286

Please sign in to comment.