Skip to content

Commit fa3ad8c

Browse files
authored
Further refine acorn-walk types
1 parent 1d50286 commit fa3ad8c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

acorn-walk/dist/walk.d.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,18 @@ declare module "acorn-walk" {
9595
node: Node,
9696
start: number | undefined,
9797
end?: number | undefined,
98-
type?: FindPredicate,
98+
type?: FindPredicate | string,
9999
base?: RecursiveVisitors<TState>,
100100
state?: TState
101101
): Found<TState> | undefined;
102102

103-
export const findNodeAround: typeof findNodeAt;
103+
export function findNodeAround<TState>(
104+
node: Node,
105+
start: number | undefined,
106+
type?: FindPredicate | string,
107+
base?: RecursiveVisitors<TState>,
108+
state?: TState
109+
): Found<TState> | undefined;
104110

105-
export const findNodeAfter: typeof findNodeAt;
111+
export const findNodeAfter: typeof findNodeAround;
106112
}

0 commit comments

Comments
 (0)