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

Lines changed: 9 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy