Don't check type annotations when deciding params scope (#11349)
* Don't check type annotations when deciding params scope * Also type params
This commit is contained in:
@@ -36,6 +36,9 @@ const iifeVisitor = {
|
||||
path.stop();
|
||||
}
|
||||
},
|
||||
// type annotations don't use or introduce "real" bindings
|
||||
"TypeAnnotation|TSTypeAnnotation|TypeParameterDeclaration|TSTypeParameterDeclaration": path =>
|
||||
path.skip(),
|
||||
};
|
||||
|
||||
export default function convertFunctionParams(path, loose) {
|
||||
|
||||
Reference in New Issue
Block a user