Skip to content

Commit

Permalink
Further refine acorn-walk types
Browse files Browse the repository at this point in the history
  • Loading branch information
susiwen8 committed Feb 18, 2020
1 parent 1d50286 commit fa3ad8c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions acorn-walk/dist/walk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,18 @@ declare module "acorn-walk" {
node: Node,
start: number | undefined,
end?: number | undefined,
type?: FindPredicate,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState
): Found<TState> | undefined;

export const findNodeAround: typeof findNodeAt;
export function findNodeAround<TState>(
node: Node,
start: number | undefined,
type?: FindPredicate | string,
base?: RecursiveVisitors<TState>,
state?: TState
): Found<TState> | undefined;

export const findNodeAfter: typeof findNodeAt;
export const findNodeAfter: typeof findNodeAround;
}

0 comments on commit fa3ad8c

Please sign in to comment.