change where tuples elements are loaded from to match TS 4.0

This commit is contained in:
Erik Krogh Kristensen
2020-08-11 10:17:28 +02:00
parent ba2d19c70f
commit 08c017eb09

View File

@@ -2177,7 +2177,7 @@ public class TypeScriptASTConverter {
}
private Node convertTupleType(JsonObject node, SourceLocation loc) throws ParseError {
return new TupleTypeExpr(loc, convertChildrenAsTypes(node, "elementTypes"));
return new TupleTypeExpr(loc, convertChildrenAsTypes(node, "elements"));
}
private Node convertTypeAliasDeclaration(JsonObject node, SourceLocation loc) throws ParseError {