babel-traverse: Add missing typed overload of traverse on Scope

This commit is contained in:
Ryan Petrich
2018-06-11 04:13:44 -04:00
parent 361f4949ac
commit 3b237ad2dd
+1
View File
@@ -26,6 +26,7 @@ export class Scope {
bindings: { [name: string]: Binding; };
/** Traverse node with current scope and path. */
traverse<S>(node: Node | Node[], opts: TraverseOptions<S>, state: S): void;
traverse(node: Node | Node[], opts?: TraverseOptions, state?: any): void;
/** Generate a unique identifier and add it to the current scope. */