diff --git a/src/printer.js b/src/printer.js index 9e41a6a39..61740fcb9 100644 --- a/src/printer.js +++ b/src/printer.js @@ -287,7 +287,11 @@ function genericPrintNoParens(path, options, print) { case "SpreadProperty": case "SpreadPropertyPattern": case "RestElement": - return concat([ "...", path.call(print, "argument") ]); + return concat([ + "...", + path.call(print, "argument"), + path.call(print, "typeAnnotation") + ]); case "FunctionDeclaration": case "FunctionExpression": if (n.async)