don't override types parameter
This commit is contained in:
parent
7170dbced8
commit
55ad88fe4e
@ -89,7 +89,6 @@ export function getTypeAnnotation(force) {
|
||||
export function _getTypeAnnotationBindingConstantViolations(name, types = []) {
|
||||
var binding = this.scope.getBinding(name);
|
||||
|
||||
var types = [];
|
||||
this.typeAnnotation = t.unionTypeAnnotation(types);
|
||||
|
||||
for (var constantViolation of (binding.constantViolations: Array)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user