fix: widen function_expression type so TSGo accepts the reassignment

pull/18847/head
Dextheking1 3 days ago
parent db18eb68a4
commit 77c501d0f4

@ -588,6 +588,7 @@ function open(parser) {
parser.eat(')', true);
}
/** @type {{ params: Pattern[] } | ArrowFunctionExpression} */
let function_expression = { params: [] };
if (matched) {

Loading…
Cancel
Save