Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions test/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down