diff --git a/lib/printer.ts b/lib/printer.ts index 008e7e93..3afb169f 100644 --- a/lib/printer.ts +++ b/lib/printer.ts @@ -483,6 +483,9 @@ function genericPrintNoParens(path: any, options: any, print: any) { return concat(parts); case "ExportSpecifier": + if (n.exportKind && n.exportKind !== "value") { + parts.push(n.exportKind + " "); + } if (n.local) { parts.push(path.call(print, "local")); if (n.exported && n.exported.name !== n.local.name) { diff --git a/test/typescript.ts b/test/typescript.ts index 8809f3b1..df22d843 100644 --- a/test/typescript.ts +++ b/test/typescript.ts @@ -350,6 +350,12 @@ const nodeMajorVersion = parseInt(process.versions.node, 10); "type Blue = Color.b;", "type Alpha = Color.a;", ]); + + check([ + "type alias = boolean;", + "const value = 0;", + "export { type alias, value };" + ]) }); it("InterfaceBody: duplicate semicolon", function () {